Mercurial > dive4elements > river
comparison flys-client/src/main/java/de/intevation/flys/client/client/ui/fixation/FixGaugeSelectPanel.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 | 00fd2bd71ac9 |
children | 0de61fc9d281 |
comparison
equal
deleted
inserted
replaced
3367:cccd6183b046 | 3368:bf080e932d54 |
---|---|
161 | 161 |
162 protected boolean saveClassValues() { | 162 protected boolean saveClassValues() { |
163 String v1 = from.getValueAsString(); | 163 String v1 = from.getValueAsString(); |
164 String v2 = to.getValueAsString(); | 164 String v2 = to.getValueAsString(); |
165 try { | 165 try { |
166 int v1i = Integer.valueOf(v1).intValue(); | 166 int v1i = Integer.parseInt(v1); |
167 int v2i = Integer.valueOf(v2).intValue(); | 167 int v2i = Integer.parseInt(v2); |
168 if (v1i <= v2i) { | 168 if (v1i <= v2i) { |
169 this.first = v1; | 169 this.first = v1; |
170 this.second = v2; | 170 this.second = v2; |
171 return true; | 171 return true; |
172 } | 172 } |