changeset 1718:defe2cfeefa5

FLYSArtifactCollection: Small optimizations flys-artifacts/trunk@2996 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Sascha L. Teichmann <sascha.teichmann@intevation.de>
date Mon, 17 Oct 2011 16:04:14 +0000
parents 755a890ecf0e
children 62983d0ced51
files flys-artifacts/ChangeLog flys-artifacts/src/main/java/de/intevation/flys/collections/FLYSArtifactCollection.java
diffstat 2 files changed, 9 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- 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	<sascha.teichmann@intevation.de>
+
+	* 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 <ingo@intevation.de>
 
 	* 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<Integer, ManagedFacet> 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() {

http://dive4elements.wald.intevation.org