Actually return an instance of a different type
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Sun, 20 Sep 2015 06:57:34 +0000 (08:57 +0200)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Sun, 20 Sep 2015 06:57:34 +0000 (08:57 +0200)
This will allow the classloader to access local resources

src/main/java/net/pterodactylus/sone/main/DefaultLoaders.java

index 0f73216..e94e655 100644 (file)
@@ -41,7 +41,8 @@ public class DefaultLoaders implements Loaders {
 
        @Override
        public <REQ extends Request> Page<REQ> loadStaticPage(String pathPrefix, String basePath, String mimeType) {
-               return new StaticPage<REQ>(pathPrefix, basePath, mimeType);
+               return new StaticPage<REQ>(pathPrefix, basePath, mimeType) {
+               };
        }
 
        @Override