Spring cleaning: use method references

This commit is contained in:
Sam Brannen
2024-02-23 11:53:15 +01:00
parent 4339c8eac2
commit 4bd1485ce4
10 changed files with 17 additions and 18 deletions

View File

@@ -69,7 +69,7 @@ class WebSocketIntegrationTests extends AbstractReactiveWebSocketIntegrationTest
if (server instanceof TomcatHttpServer) {
Mono.fromRunnable(this::testEcho)
.retryWhen(Retry.max(3).filter(ex -> ex instanceof IllegalStateException))
.retryWhen(Retry.max(3).filter(IllegalStateException.class::isInstance))
.block();
}
else {