don't create superfluous map
authorDavid ‘Bombe’ Roden <bombe@freenetproject.org>
Sat, 1 Dec 2007 12:17:34 +0000 (12:17 +0000)
committerDavid ‘Bombe’ Roden <bombe@freenetproject.org>
Sat, 1 Dec 2007 12:17:34 +0000 (12:17 +0000)
src/de/todesbaum/jsite/application/Project.java

index 7604259..c1d07f1 100644 (file)
@@ -241,7 +241,7 @@ public class Project implements Comparable {
         * @return Returns the fileOptions.
         */
        public Map<String, FileOption> getFileOptions() {
-               return Collections.unmodifiableMap(new HashMap<String, FileOption>(fileOptions));
+               return Collections.unmodifiableMap(fileOptions);
        }
 
        /**