提交 c6e644e5 编写于 作者: S Stephane Nicoll

Polish "Downcast to InetSocketAddress for Jetty 10"

This commit uses the target type where getRemoteAddress and
getLocalAddress are defined.

See gh-27120
上级 62e91653
......@@ -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");
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册