diff flys-artifacts/src/main/java/de/intevation/flys/artifacts/StaticWKmsArtifact.java @ 3405:b0ba96bbf01d

Use Integer.parseInt() instead of Integer.valueOf() + Autounboxing. flys-artifacts/trunk@5057 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Sascha L. Teichmann <sascha.teichmann@intevation.de>
date Thu, 19 Jul 2012 09:37:52 +0000
parents d9af29a4bb85
children afc7bfb4800b
line wrap: on
line diff
--- a/flys-artifacts/src/main/java/de/intevation/flys/artifacts/StaticWKmsArtifact.java	Thu Jul 19 09:11:56 2012 +0000
+++ b/flys-artifacts/src/main/java/de/intevation/flys/artifacts/StaticWKmsArtifact.java	Thu Jul 19 09:37:52 2012 +0000
@@ -97,10 +97,10 @@
 
             if (parts.length >= 4) {
                 int col = -1;
-                int wst = Integer.valueOf(parts[3]);
+                int wst = Integer.parseInt(parts[3]);
 
                 if (!parts[2].equals("A")) {
-                    col = Integer.valueOf(parts[2]);
+                    col = Integer.parseInt(parts[2]);
                 }
 
                 addStringData("col_pos", parts[2]);
@@ -236,8 +236,8 @@
         logger.debug("StaticWKmsArtifact.getWKms");
 
         return WKmsFactory.getWKms(
-            Integer.valueOf(getDataAsString("col_pos")),
-            Integer.valueOf(getDataAsString("wst_id")));
+            Integer.parseInt(getDataAsString("col_pos")),
+            Integer.parseInt(getDataAsString("wst_id")));
     }
 
 

http://dive4elements.wald.intevation.org