comparison flys-artifacts/src/main/java/de/intevation/flys/artifacts/WMSKmArtifact.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 c8f670ae96e8
children 2fdbe78a8fc2
comparison
equal deleted inserted replaced
3404:d7b065b88f10 3405:b0ba96bbf01d
89 public int getRiverId() { 89 public int getRiverId() {
90 if (riverId == 0) { 90 if (riverId == 0) {
91 String ids = artifact.getDataAsString("ids"); 91 String ids = artifact.getDataAsString("ids");
92 92
93 try { 93 try {
94 riverId = Integer.valueOf(ids); 94 riverId = Integer.parseInt(ids);
95 } 95 }
96 catch (NumberFormatException nfe) { 96 catch (NumberFormatException nfe) {
97 logger.error("Cannot parse river id from '" + ids + "'"); 97 logger.error("Cannot parse river id from '" + ids + "'");
98 } 98 }
99 } 99 }

http://dive4elements.wald.intevation.org