Mercurial > dive4elements > river
changeset 9221:5c34fe17ef15
Exchanged left and right side for waterlevel/sounding selection
author | gernotbelger |
---|---|
date | Wed, 04 Jul 2018 12:00:57 +0200 |
parents | e3c2ae1887e8 |
children | 5a0e8d76582e |
files | artifacts/src/main/java/org/dive4elements/river/artifacts/sinfo/flowdepth/FlowDepthAccess.java artifacts/src/main/java/org/dive4elements/river/artifacts/sinfo/flowdepth/WstSoundingIdPair.java |
diffstat | 2 files changed, 4 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/artifacts/src/main/java/org/dive4elements/river/artifacts/sinfo/flowdepth/FlowDepthAccess.java Wed Jul 04 12:00:51 2018 +0200 +++ b/artifacts/src/main/java/org/dive4elements/river/artifacts/sinfo/flowdepth/FlowDepthAccess.java Wed Jul 04 12:00:57 2018 +0200 @@ -52,7 +52,6 @@ return Collections.emptyList(); } - final Collection<WstSoundingIdPair> pairs = WstSoundingIdPair.parsePairs(diffids); - return pairs; + return WstSoundingIdPair.parsePairs(diffids); } } \ No newline at end of file
--- a/artifacts/src/main/java/org/dive4elements/river/artifacts/sinfo/flowdepth/WstSoundingIdPair.java Wed Jul 04 12:00:51 2018 +0200 +++ b/artifacts/src/main/java/org/dive4elements/river/artifacts/sinfo/flowdepth/WstSoundingIdPair.java Wed Jul 04 12:00:57 2018 +0200 @@ -45,10 +45,10 @@ final List<WstSoundingIdPair> diffPairs = new ArrayList<>(datas.length); for (int i = 0; i < datas.length; i += 2) { - final String leftId = StringUtil.unbracket(datas[i]); - final String rightId = StringUtil.unbracket(datas[i + 1]); + final String soundingId = StringUtil.unbracket(datas[i]); + final String wstId = StringUtil.unbracket(datas[i + 1]); - diffPairs.add(new WstSoundingIdPair(leftId, rightId)); + diffPairs.add(new WstSoundingIdPair(wstId, soundingId)); } return Collections.unmodifiableList(diffPairs);