Mercurial > dive4elements > river
comparison artifacts/src/main/java/org/dive4elements/river/artifacts/access/BedHeightAccess.java @ 8856:5e38e2924c07 3.2.x
Fix code style.
author | Tom Gottfried <tom@intevation.de> |
---|---|
date | Thu, 18 Jan 2018 20:12:01 +0100 |
parents | 5c4766ac20ba |
children | 0a5239a1e46e |
comparison
equal
deleted
inserted
replaced
8855:d7c005e12af0 | 8856:5e38e2924c07 |
---|---|
53 | 53 |
54 TIntArrayList ids = new TIntArrayList(); | 54 TIntArrayList ids = new TIntArrayList(); |
55 | 55 |
56 for (String part: parts) { | 56 for (String part: parts) { |
57 if (part.indexOf(SoundingsSelect.PREFIX_SINGLE) >= 0) { | 57 if (part.indexOf(SoundingsSelect.PREFIX_SINGLE) >= 0) { |
58 String tmp = part.replace(SoundingsSelect.PREFIX_SINGLE, ""); | 58 String tmp = part.replace( |
59 SoundingsSelect.PREFIX_SINGLE, ""); | |
59 | 60 |
60 try { | 61 try { |
61 int i = Integer.parseInt(tmp); | 62 int i = Integer.parseInt(tmp); |
62 if (!ids.contains(i)) { | 63 if (!ids.contains(i)) { |
63 ids.add(i); | 64 ids.add(i); |
64 } | 65 } |
65 } | 66 } |
66 catch (NumberFormatException nfe) { | 67 catch (NumberFormatException nfe) { |
67 log.warn("Cannot parse int from string: '" + tmp + "'"); | 68 log.warn( |
69 "Cannot parse int from string: '" + tmp + "'"); | |
68 } | 70 } |
69 } | 71 } |
70 } | 72 } |
71 | 73 |
72 singleIDs = ids.toNativeArray(); | 74 singleIDs = ids.toNativeArray(); |