compare to projects
authorDavid ‘Bombe’ Roden <bombe@freenetproject.org>
Sun, 22 Jun 2008 11:19:15 +0000 (13:19 +0200)
committerDavid ‘Bombe’ Roden <bombe@freenetproject.org>
Sun, 22 Jun 2008 11:19:15 +0000 (13:19 +0200)
src/de/todesbaum/jsite/application/Project.java

index 57138b8..8e8d6d7 100644 (file)
@@ -30,7 +30,7 @@ import de.todesbaum.util.mime.DefaultMIMETypes;
  * @author David Roden <dr@todesbaum.dyndns.org>
  * @version $Id$
  */
-public class Project implements Comparable {
+public class Project implements Comparable<Project> {
 
        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);
        }
 
        /**