# HG changeset patch # User Sascha L. Teichmann # Date 1318867454 0 # Node ID defe2cfeefa53f8742186849d6b8c3f9a90dc4c9 # Parent 755a890ecf0e7b3b0681646db77165d4c1483a45 FLYSArtifactCollection: Small optimizations flys-artifacts/trunk@2996 c6561f87-3c4e-4783-a992-168aeb5c3f6f diff -r 755a890ecf0e -r defe2cfeefa5 flys-artifacts/ChangeLog --- a/flys-artifacts/ChangeLog Mon Oct 17 15:53:59 2011 +0000 +++ b/flys-artifacts/ChangeLog Mon Oct 17 16:04:14 2011 +0000 @@ -1,3 +1,9 @@ +2011-10-17 Sascha L. Teichmann + + * src/main/java/de/intevation/flys/collections/FLYSArtifactCollection.java: + Made inner class ThemeList static. + s/new Integer(small)/Integer.valueOf(small)/ + 2011-10-17 Ingo Weinzierl * src/main/java/de/intevation/flys/collections/FLYSArtifactCollection.java: diff -r 755a890ecf0e -r defe2cfeefa5 flys-artifacts/src/main/java/de/intevation/flys/collections/FLYSArtifactCollection.java --- a/flys-artifacts/src/main/java/de/intevation/flys/collections/FLYSArtifactCollection.java Mon Oct 17 15:53:59 2011 +0000 +++ b/flys-artifacts/src/main/java/de/intevation/flys/collections/FLYSArtifactCollection.java Mon Oct 17 16:04:14 2011 +0000 @@ -766,7 +766,7 @@ /** * Inner class to structure/order the themes of a chart. */ - private class ThemeList { + private static class ThemeList { private Logger logger = Logger.getLogger(ThemeList.class); protected Map themes; @@ -796,12 +796,12 @@ Element theme = (Element) themeList.item(i); ManagedDomFacet facet = new ManagedDomFacet(theme); - themes.put(new Integer(facet.getPosition()-1), facet); + themes.put(Integer.valueOf(facet.getPosition()-1), facet); } } public ManagedFacet get(int idx) { - return themes.get(new Integer(idx)); + return themes.get(Integer.valueOf(idx)); } public int size() {