Skip to content

Commit

Permalink
Clean up warnings in Gradle build
Browse files Browse the repository at this point in the history
  • Loading branch information
sbrannen committed Jun 11, 2024
1 parent f481a4b commit f35c39f
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
import org.springframework.messaging.simp.stomp.StompReactorNettyCodec;
import org.springframework.messaging.tcp.reactor.ReactorNettyTcpClient;
import org.springframework.web.socket.config.annotation.EnableWebSocketMessageBroker;
import org.springframework.web.socket.config.annotation.StompEndpointRegistry;
import org.springframework.web.socket.config.annotation.WebSocketMessageBrokerConfigurer;

// tag::snippet[]
Expand All @@ -41,7 +40,7 @@ public void configureMessageBroker(MessageBrokerRegistry registry) {

private ReactorNettyTcpClient<byte[]> createTcpClient() {
return new ReactorNettyTcpClient<>(
client -> client.addressSupplier(() -> new InetSocketAddress(0)),
client -> client.remoteAddress(() -> new InetSocketAddress(0)),
new StompReactorNettyCodec());
}
}
Expand Down

0 comments on commit f35c39f

Please sign in to comment.