mirror of
https://github.com/spring-projects/spring-framework.git
synced 2026-10-04 05:59:12 +00:00
Polish "Downcast to InetSocketAddress for Jetty 10"
This commit uses the target type where getRemoteAddress and getLocalAddress are defined. See gh-27120
This commit is contained in:
+1
-1
@@ -306,7 +306,7 @@ public class JettyWebSocketSession extends AbstractWebSocketSession<Session> {
|
||||
|
||||
static {
|
||||
try {
|
||||
Class<?> type = loader.loadClass("org.eclipse.jetty.websocket.api.WebSocketPolicy");
|
||||
Class<?> type = loader.loadClass("org.eclipse.jetty.websocket.api.Session");
|
||||
getTextMessageSizeLimitMethod = type.getMethod("getMaxTextMessageSize");
|
||||
getBinaryMessageSizeLimitMethod = type.getMethod("getMaxBinaryMessageSize");
|
||||
getRemoteAddressMethod = type.getMethod("getRemoteAddress");
|
||||
|
||||
Reference in New Issue
Block a user