comparison flys-artifacts/src/main/java/de/intevation/flys/artifacts/RiverAxisArtifact.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
90 public int getRiverId() { 90 public int getRiverId() {
91 if (riverId == 0) { 91 if (riverId == 0) {
92 String ids = artifact.getDataAsString("ids"); 92 String ids = artifact.getDataAsString("ids");
93 93
94 try { 94 try {
95 riverId = Integer.valueOf(ids); 95 riverId = Integer.parseInt(ids);
96 } 96 }
97 catch (NumberFormatException nfe) { 97 catch (NumberFormatException nfe) {
98 logger.error("Cannot parse river id from '" + ids + "'"); 98 logger.error("Cannot parse river id from '" + ids + "'");
99 } 99 }
100 } 100 }

http://dive4elements.wald.intevation.org