* @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;
public String toString() {
return name;
}
-
+
private String shortenURI(String uri) {
if (uri.startsWith("freenet:")) {
uri = uri.substring("freenet:".length());
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);
}
/**