fix bug in WebSocketMapping failing isInstance test

Signed-off-by: Lachlan Roberts <lachlan@webtide.com>
This commit is contained in:
Lachlan Roberts 2019-01-29 15:26:16 +11:00
parent 8c5d421b5b
commit b0aec2b26e
1 changed files with 2 additions and 1 deletions

View File

@ -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(