From e5842243d4aced0929329e0cbaf0656e73887d72 Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Sun, 20 Sep 2015 08:57:34 +0200 Subject: [PATCH] Actually return an instance of a different type This will allow the classloader to access local resources --- src/main/java/net/pterodactylus/sone/main/DefaultLoaders.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 -- 2.7.4