projects
/
jSite.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
remove subversion $Id$ tags
[jSite.git]
/
src
/
de
/
todesbaum
/
jsite
/
application
/
Project.java
diff --git
a/src/de/todesbaum/jsite/application/Project.java
b/src/de/todesbaum/jsite/application/Project.java
index
7604259
..
85df0ef
100644
(file)
--- a/
src/de/todesbaum/jsite/application/Project.java
+++ b/
src/de/todesbaum/jsite/application/Project.java
@@
-27,10
+27,9
@@
import java.util.Map;
import de.todesbaum.util.mime.DefaultMIMETypes;
/**
import de.todesbaum.util.mime.DefaultMIMETypes;
/**
- * @author David Roden <dr@todesbaum.dyndns.org>
- * @version $Id$
+ * @author David ‘Bombe’ Roden <bombe@freenetproject.org>
*/
*/
-public class Project implements Comparable {
+public class Project implements Comparable
<Project>
{
protected String name;
protected String description;
protected String name;
protected String description;
@@
-192,7
+191,7
@@
public class Project implements Comparable {
public String toString() {
return name;
}
public String toString() {
return name;
}
-
+
private String shortenURI(String uri) {
if (uri.startsWith("freenet:")) {
uri = uri.substring("freenet:".length());
private String shortenURI(String uri) {
if (uri.startsWith("freenet:")) {
uri = uri.substring("freenet:".length());
@@
-241,7
+240,7
@@
public class Project implements Comparable {
* @return Returns the fileOptions.
*/
public Map<String, FileOption> getFileOptions() {
* @return Returns the fileOptions.
*/
public Map<String, FileOption> getFileOptions() {
- return Collections.unmodifiableMap(
new HashMap<String, FileOption>(fileOptions)
);
+ return Collections.unmodifiableMap(
fileOptions
);
}
/**
}
/**
@@
-252,12
+251,12
@@
public class Project implements Comparable {
this.fileOptions.clear();
this.fileOptions.putAll(fileOptions);
}
this.fileOptions.clear();
this.fileOptions.putAll(fileOptions);
}
-
+
/**
* {@inheritDoc}
*/
/**
* {@inheritDoc}
*/
- public int compareTo(
Object o
) {
- return name.compareToIgnoreCase(
((Project) o)
.name);
+ public int compareTo(
Project project
) {
+ return name.compareToIgnoreCase(
project
.name);
}
/**
}
/**
@@
-285,7
+284,7
@@
public class Project implements Comparable {
* @return The final request URI
*/
public String getFinalRequestURI(int offset) {
* @return The final request URI
*/
public String getFinalRequestURI(int offset) {
- return "
freenet:
USK@" + requestURI + "/" + path + "/" + (edition + offset) + "/";
+ return "USK@" + requestURI + "/" + path + "/" + (edition + offset) + "/";
}
}
}
}