Mercurial > dive4elements > river
comparison artifacts/src/main/java/org/dive4elements/river/artifacts/access/BedDifferencesAccess.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 | 76113b975829 |
children | 0a5239a1e46e |
comparison
equal
deleted
inserted
replaced
8855:d7c005e12af0 | 8856:5e38e2924c07 |
---|---|
56 String diff1 = StringUtil.unbracket(diffs[0 + 2*i]); | 56 String diff1 = StringUtil.unbracket(diffs[0 + 2*i]); |
57 String diff2 = StringUtil.unbracket(diffs[1 + 2*i]); | 57 String diff2 = StringUtil.unbracket(diffs[1 + 2*i]); |
58 String[] diff1parts = diff1.split(";"); | 58 String[] diff1parts = diff1.split(";"); |
59 String[] diff2parts = diff2.split(";"); | 59 String[] diff2parts = diff2.split(";"); |
60 if (log.isDebugEnabled()) { | 60 if (log.isDebugEnabled()) { |
61 log.debug("creating 2 artifacts." + diff1parts[0] + "; " + diff2parts[0]); | 61 log.debug("creating 2 artifacts." |
62 + diff1parts[0] + "; " + diff2parts[0]); | |
62 } | 63 } |
63 differenceArtifactIds[i][0] = diff1parts[0]; | 64 differenceArtifactIds[i][0] = diff1parts[0]; |
64 differenceArtifactIds[i][1] = diff2parts[0]; | 65 differenceArtifactIds[i][1] = diff2parts[0]; |
65 } | 66 } |
66 } | 67 } |
85 | 86 |
86 public int [][] extractHeightIds(CallContext context) { | 87 public int [][] extractHeightIds(CallContext context) { |
87 String [][] artifactsIds = getDifferenceArtifactIds(); | 88 String [][] artifactsIds = getDifferenceArtifactIds(); |
88 int [][] ids = new int[artifactsIds.length][2]; | 89 int [][] ids = new int[artifactsIds.length][2]; |
89 for (int i = 0; i < artifactsIds.length; ++i) { | 90 for (int i = 0; i < artifactsIds.length; ++i) { |
90 D4EArtifact a1 = RiverUtils.getArtifact(artifactsIds[i][0], context); | 91 D4EArtifact a1 = RiverUtils.getArtifact( |
91 D4EArtifact a2 = RiverUtils.getArtifact(artifactsIds[i][1], context); | 92 artifactsIds[i][0], context); |
93 D4EArtifact a2 = RiverUtils.getArtifact( | |
94 artifactsIds[i][1], context); | |
92 ids[i][0] = getHeightId(a1); | 95 ids[i][0] = getHeightId(a1); |
93 ids[i][1] = getHeightId(a2); | 96 ids[i][1] = getHeightId(a2); |
94 } | 97 } |
95 return ids; | 98 return ids; |
96 } | 99 } |