fix: [Jetty]: Adding force-cast to Jetty-thing for build in bot.
authorFelix Dörre <felix@dogcraft.de>
Mon, 23 Jun 2014 20:22:49 +0000 (22:22 +0200)
committerFelix Dörre <felix@dogcraft.de>
Mon, 23 Jun 2014 20:22:49 +0000 (22:22 +0200)
(was only warning in eclipse while other compiler threw error)

lib/jetty/org/eclipse/jetty/server/handler/ContextHandler.java

index 397cde1..3a7d9d3 100644 (file)
@@ -2193,7 +2193,7 @@ public class ContextHandler extends ScopedHandler implements Attributes, Gracefu
 
             try
             {
-                Class<? extends EventListener> clazz = _classLoader==null?Loader.loadClass(ContextHandler.class,className):_classLoader.loadClass(className);
+                Class<? extends EventListener> clazz = (Class<? extends EventListener>) (_classLoader==null?Loader.loadClass(ContextHandler.class,className):_classLoader.loadClass(className));
                 addListener(clazz);
             }
             catch (ClassNotFoundException e)