diff --git a/framework-docs/framework-docs.gradle b/framework-docs/framework-docs.gradle index c17b798f3f83..f6f93ee6b935 100644 --- a/framework-docs/framework-docs.gradle +++ b/framework-docs/framework-docs.gradle @@ -78,6 +78,7 @@ dependencies { api("jakarta.validation:jakarta.validation-api") api("org.aspectj:aspectjweaver") api("io.projectreactor.netty:reactor-netty-http") + api("org.eclipse.jetty.websocket:jetty-websocket-jetty-api") implementation(project(":spring-core-test")) implementation("org.assertj:assertj-core") diff --git a/framework-docs/src/main/kotlin/org/springframework/docs/web/websocket/stomp/websocketstompdestinationseparator/RedController.kt b/framework-docs/src/main/kotlin/org/springframework/docs/web/websocket/stomp/websocketstompdestinationseparator/RedController.kt index cb528a5ebc7b..88ebf88248fa 100644 --- a/framework-docs/src/main/kotlin/org/springframework/docs/web/websocket/stomp/websocketstompdestinationseparator/RedController.kt +++ b/framework-docs/src/main/kotlin/org/springframework/docs/web/websocket/stomp/websocketstompdestinationseparator/RedController.kt @@ -14,6 +14,7 @@ * limitations under the License. */ +@file:Suppress("UNUSED_PARAMETER") package org.springframework.docs.web.websocket.stomp.websocketstompdestinationseparator import org.springframework.messaging.handler.annotation.DestinationVariable @@ -26,7 +27,7 @@ import org.springframework.stereotype.Controller class RedController { @MessageMapping("blue.{green}") - fun handleGreen(@DestinationVariable green: String?) { + fun handleGreen(@DestinationVariable green: String) { // ... } } diff --git a/framework-docs/src/main/kotlin/org/springframework/docs/web/websocket/stomp/websocketstomphandlebrokerrelayconfigure/WebSocketConfiguration.kt b/framework-docs/src/main/kotlin/org/springframework/docs/web/websocket/stomp/websocketstomphandlebrokerrelayconfigure/WebSocketConfiguration.kt index e051874aa0d1..1fb61d28b8bb 100644 --- a/framework-docs/src/main/kotlin/org/springframework/docs/web/websocket/stomp/websocketstomphandlebrokerrelayconfigure/WebSocketConfiguration.kt +++ b/framework-docs/src/main/kotlin/org/springframework/docs/web/websocket/stomp/websocketstomphandlebrokerrelayconfigure/WebSocketConfiguration.kt @@ -14,6 +14,7 @@ * limitations under the License. */ +@file:Suppress("DEPRECATION") package org.springframework.docs.web.websocket.stomp.websocketstomphandlebrokerrelayconfigure import org.springframework.context.annotation.Configuration diff --git a/framework-docs/src/main/kotlin/org/springframework/docs/web/websocket/stomp/websocketstompinterceptors/MyChannelInterceptor.kt b/framework-docs/src/main/kotlin/org/springframework/docs/web/websocket/stomp/websocketstompinterceptors/MyChannelInterceptor.kt index 11fd7dc30e6f..45c7f93e1301 100644 --- a/framework-docs/src/main/kotlin/org/springframework/docs/web/websocket/stomp/websocketstompinterceptors/MyChannelInterceptor.kt +++ b/framework-docs/src/main/kotlin/org/springframework/docs/web/websocket/stomp/websocketstompinterceptors/MyChannelInterceptor.kt @@ -14,6 +14,7 @@ * limitations under the License. */ +@file:Suppress("UNUSED_VARIABLE") package org.springframework.docs.web.websocket.stomp.websocketstompinterceptors import org.springframework.messaging.Message diff --git a/framework-docs/src/main/kotlin/org/springframework/docs/web/websocket/stomp/websocketstompserverconfig/JettyWebSocketConfiguration.kt b/framework-docs/src/main/kotlin/org/springframework/docs/web/websocket/stomp/websocketstompserverconfig/JettyWebSocketConfiguration.kt index 333403de4f55..75420c84ac44 100644 --- a/framework-docs/src/main/kotlin/org/springframework/docs/web/websocket/stomp/websocketstompserverconfig/JettyWebSocketConfiguration.kt +++ b/framework-docs/src/main/kotlin/org/springframework/docs/web/websocket/stomp/websocketstompserverconfig/JettyWebSocketConfiguration.kt @@ -24,7 +24,6 @@ import org.springframework.web.socket.config.annotation.WebSocketMessageBrokerCo import org.springframework.web.socket.server.jetty.JettyRequestUpgradeStrategy import org.springframework.web.socket.server.support.DefaultHandshakeHandler import java.time.Duration -import java.util.function.Consumer // tag::snippet[] @Configuration