X-Git-Url: https://git.pterodactylus.net/?p=Sone.git;a=blobdiff_plain;f=src%2Fmain%2Fjava%2Fnet%2Fpterodactylus%2Fsone%2Fmain%2FDebugLoaders.java;h=c42b056f59085d134d1c30c9161b7268b704d413;hp=11755e020aac3e23639e950b194cb34d84c4b86d;hb=179e7da4d8d8a474d0b622d60b5f5d32d6ab4052;hpb=76ed638264e531a26e35647d13702db865a52321 diff --git a/src/main/java/net/pterodactylus/sone/main/DebugLoaders.java b/src/main/java/net/pterodactylus/sone/main/DebugLoaders.java index 11755e0..c42b056 100644 --- a/src/main/java/net/pterodactylus/sone/main/DebugLoaders.java +++ b/src/main/java/net/pterodactylus/sone/main/DebugLoaders.java @@ -3,7 +3,7 @@ package net.pterodactylus.sone.main; import java.io.File; import net.pterodactylus.sone.template.FilesystemTemplate; -import net.pterodactylus.sone.web.ReloadingPage; +import net.pterodactylus.sone.web.pages.ReloadingPage; import net.pterodactylus.util.template.FilesystemTemplateProvider; import net.pterodactylus.util.template.Template; import net.pterodactylus.util.template.TemplateProvider; @@ -12,8 +12,6 @@ import net.pterodactylus.util.web.Request; /** * {@link Loaders} implementation that loads all resources from the filesystem. - * - * @author David ‘Bombe’ Roden */ public class DebugLoaders implements Loaders { @@ -30,7 +28,7 @@ public class DebugLoaders implements Loaders { @Override public Page loadStaticPage(String basePath, String prefix, String mimeType) { - return new ReloadingPage(basePath, new File(filesystemPath, prefix).getAbsolutePath(), mimeType); + return new ReloadingPage<>(basePath, new File(filesystemPath, prefix).getAbsolutePath(), mimeType); } @Override