X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=src%2Fde%2Ftodesbaum%2Fjsite%2Fapplication%2FProject.java;h=8e8d6d7191dbc7d7c3f79c049abca08c0c21ede0;hb=717369ceab558fc6668c2f327b1004f52ba8eaa7;hp=c1d07f1d14f0e8d677e974ba955725e8a8f416b0;hpb=675757ca5ef3355c1b79f67f66d34af579d5cef3;p=jSite.git diff --git a/src/de/todesbaum/jsite/application/Project.java b/src/de/todesbaum/jsite/application/Project.java index c1d07f1..8e8d6d7 100644 --- a/src/de/todesbaum/jsite/application/Project.java +++ b/src/de/todesbaum/jsite/application/Project.java @@ -30,7 +30,7 @@ import de.todesbaum.util.mime.DefaultMIMETypes; * @author David Roden * @version $Id$ */ -public class Project implements Comparable { +public class Project implements Comparable { protected String name; protected String description; @@ -192,7 +192,7 @@ public class Project implements Comparable { public String toString() { return name; } - + private String shortenURI(String uri) { if (uri.startsWith("freenet:")) { uri = uri.substring("freenet:".length()); @@ -252,12 +252,12 @@ public class Project implements Comparable { this.fileOptions.clear(); this.fileOptions.putAll(fileOptions); } - + /** * {@inheritDoc} */ - public int compareTo(Object o) { - return name.compareToIgnoreCase(((Project) o).name); + public int compareTo(Project project) { + return name.compareToIgnoreCase(project.name); } /** @@ -285,7 +285,7 @@ public class Project implements Comparable { * @return The final request URI */ public String getFinalRequestURI(int offset) { - return "freenet:USK@" + requestURI + "/" + path + "/" + (edition + offset) + "/"; + return "USK@" + requestURI + "/" + path + "/" + (edition + offset) + "/"; } }