Skip to content

Commit c05b4bc

Browse files
committed
Add missing dependency and remove warnings
See spring-projectsgh-22171
1 parent 246f291 commit c05b4bc

File tree

5 files changed

+5
-2
lines changed

5 files changed

+5
-2
lines changed

framework-docs/framework-docs.gradle

+1
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@ dependencies {
7878
api("jakarta.validation:jakarta.validation-api")
7979
api("org.aspectj:aspectjweaver")
8080
api("io.projectreactor.netty:reactor-netty-http")
81+
api("org.eclipse.jetty.websocket:jetty-websocket-jetty-api")
8182

8283
implementation(project(":spring-core-test"))
8384
implementation("org.assertj:assertj-core")

framework-docs/src/main/kotlin/org/springframework/docs/web/websocket/stomp/websocketstompdestinationseparator/RedController.kt

+2-1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
* limitations under the License.
1515
*/
1616

17+
@file:Suppress("UNUSED_PARAMETER")
1718
package org.springframework.docs.web.websocket.stomp.websocketstompdestinationseparator
1819

1920
import org.springframework.messaging.handler.annotation.DestinationVariable
@@ -26,7 +27,7 @@ import org.springframework.stereotype.Controller
2627
class RedController {
2728

2829
@MessageMapping("blue.{green}")
29-
fun handleGreen(@DestinationVariable green: String?) {
30+
fun handleGreen(@DestinationVariable green: String) {
3031
// ...
3132
}
3233
}

framework-docs/src/main/kotlin/org/springframework/docs/web/websocket/stomp/websocketstomphandlebrokerrelayconfigure/WebSocketConfiguration.kt

+1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
* limitations under the License.
1515
*/
1616

17+
@file:Suppress("DEPRECATION")
1718
package org.springframework.docs.web.websocket.stomp.websocketstomphandlebrokerrelayconfigure
1819

1920
import org.springframework.context.annotation.Configuration

framework-docs/src/main/kotlin/org/springframework/docs/web/websocket/stomp/websocketstompinterceptors/MyChannelInterceptor.kt

+1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
* limitations under the License.
1515
*/
1616

17+
@file:Suppress("UNUSED_VARIABLE")
1718
package org.springframework.docs.web.websocket.stomp.websocketstompinterceptors
1819

1920
import org.springframework.messaging.Message

framework-docs/src/main/kotlin/org/springframework/docs/web/websocket/stomp/websocketstompserverconfig/JettyWebSocketConfiguration.kt

-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ import org.springframework.web.socket.config.annotation.WebSocketMessageBrokerCo
2424
import org.springframework.web.socket.server.jetty.JettyRequestUpgradeStrategy
2525
import org.springframework.web.socket.server.support.DefaultHandshakeHandler
2626
import java.time.Duration
27-
import java.util.function.Consumer
2827

2928
// tag::snippet[]
3029
@Configuration

0 commit comments

Comments
 (0)