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