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 lxbzmy committed Mar 26, 2022
1 parent 7287e87 commit 84eb13a
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 84eb13a

Please sign in to comment.