Mercurial > dive4elements > river
comparison flys-client/src/main/java/de/intevation/flys/client/client/ui/chart/NaviChartOutputTab.java @ 3368:bf080e932d54
Use more idiomatic Java when parsing doubles and ints.
flys-client/trunk@5055 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Sascha L. Teichmann <sascha.teichmann@intevation.de> |
---|---|
date | Thu, 19 Jul 2012 09:00:42 +0000 |
parents | 8bedd1fcaeee |
children | 17c66d38f095 |
comparison
equal
deleted
inserted
replaced
3367:cccd6183b046 | 3368:bf080e932d54 |
---|---|
84 form.setWidth(60); | 84 form.setWidth(60); |
85 FixAnalysisArtifact fix = (FixAnalysisArtifact) art; | 85 FixAnalysisArtifact fix = (FixAnalysisArtifact) art; |
86 | 86 |
87 String s = fix.getArtifactDescription().getDataValueAsString("step"); | 87 String s = fix.getArtifactDescription().getDataValueAsString("step"); |
88 try { | 88 try { |
89 double ds = Double.valueOf(s).doubleValue(); | 89 double ds = Double.parseDouble(s); |
90 collectionView.setSteps(ds); | 90 collectionView.setSteps(ds); |
91 } | 91 } |
92 catch(NumberFormatException nfe) { | 92 catch(NumberFormatException nfe) { |
93 collectionView.setSteps(100d); | 93 collectionView.setSteps(100d); |
94 } | 94 } |