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 gh-27120
  • Loading branch information
snicoll committed Jul 13, 2021
1 parent 62e9165 commit c6e644e
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 c6e644e

Please sign in to comment.