From: David ‘Bombe’ Roden Date: Sun, 22 Jun 2008 11:19:15 +0000 (+0200) Subject: compare to projects X-Git-Tag: 0.4.12.1~2 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=717369ceab558fc6668c2f327b1004f52ba8eaa7;p=jSite.git compare to projects --- diff --git a/src/de/todesbaum/jsite/application/Project.java b/src/de/todesbaum/jsite/application/Project.java index 57138b8..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); } /**