Skip to content

Commit

Permalink
Polish "Downcast to InetSocketAddress for Jetty 10"
Browse files Browse the repository at this point in the history
This commit uses the target type where getRemoteAddress and
getLocalAddress are defined.

See spring-projectsgh-27120
  • Loading branch information
snicoll authored and Zoran0104 committed Aug 20, 2021
1 parent 4ce1b19 commit 5899a12
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -306,7 +306,7 @@ private static class Jetty10SessionHelper implements SessionHelper {

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");
Expand Down

0 comments on commit 5899a12

Please sign in to comment.