From: David ‘Bombe’ Roden Date: Sun, 20 Sep 2015 06:57:34 +0000 (+0200) Subject: Actually return an instance of a different type X-Git-Tag: 0.9.4^2~5 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=e5842243d4aced0929329e0cbaf0656e73887d72;p=Sone.git Actually return an instance of a different type This will allow the classloader to access local resources --- diff --git a/src/main/java/net/pterodactylus/sone/main/DefaultLoaders.java b/src/main/java/net/pterodactylus/sone/main/DefaultLoaders.java index 0f73216..e94e655 100644 --- a/src/main/java/net/pterodactylus/sone/main/DefaultLoaders.java +++ b/src/main/java/net/pterodactylus/sone/main/DefaultLoaders.java @@ -41,7 +41,8 @@ public class DefaultLoaders implements Loaders { @Override public Page loadStaticPage(String pathPrefix, String basePath, String mimeType) { - return new StaticPage(pathPrefix, basePath, mimeType); + return new StaticPage(pathPrefix, basePath, mimeType) { + }; } @Override