fix bug in WebSocketMapping failing isInstance test
Signed-off-by: Lachlan Roberts <lachlan@webtide.com>
This commit is contained in:
parent
8c5d421b5b
commit
b0aec2b26e
|
@ -21,6 +21,7 @@ package org.eclipse.jetty.websocket.servlet;
|
|||
import java.io.IOException;
|
||||
import java.net.URISyntaxException;
|
||||
import java.util.function.Consumer;
|
||||
|
||||
import javax.servlet.ServletContext;
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
|
@ -67,7 +68,7 @@ public class WebSocketMapping implements Dumpable, LifeCycle.Listener
|
|||
Object mappingObject = contextHandler.getAttribute(mappingKey);
|
||||
if (mappingObject!=null)
|
||||
{
|
||||
if (WebSocketMapping.class.isInstance(mappingObject.getClass()))
|
||||
if (WebSocketMapping.class.isInstance(mappingObject))
|
||||
return (WebSocketMapping)mappingObject;
|
||||
else
|
||||
throw new IllegalStateException(
|
||||
|
|
Loading…
Reference in New Issue