Mercurial > dive4elements > river
comparison flys-artifacts/src/main/java/de/intevation/flys/utils/FLYSUtils.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 | d9af29a4bb85 |
children | f903f1e5aed6 |
comparison
equal
deleted
inserted
replaced
3404:d7b065b88f10 | 3405:b0ba96bbf01d |
---|---|
817 | 817 |
818 TIntArrayList integers = new TIntArrayList(splitted.length); | 818 TIntArrayList integers = new TIntArrayList(splitted.length); |
819 | 819 |
820 for (String value: splitted) { | 820 for (String value: splitted) { |
821 try { | 821 try { |
822 integers.add(Integer.valueOf(value)); | 822 integers.add(Integer.parseInt(value)); |
823 } | 823 } |
824 catch (NumberFormatException nfe) { | 824 catch (NumberFormatException nfe) { |
825 logger.warn("Parsing integer failed: " + nfe); | 825 logger.warn("Parsing integer failed: " + nfe); |
826 } | 826 } |
827 } | 827 } |