Mercurial > dive4elements > river
diff artifacts/src/main/java/org/dive4elements/river/utils/RiverUtils.java @ 8760:9483a5bf4219
Remove indirection via RiverUtils to obtain reference gauge and reduce casts.
author | Tom Gottfried <tom@intevation.de> |
---|---|
date | Fri, 26 Jun 2015 19:33:17 +0200 |
parents | 26dedebbe39f |
children | a5e450af498b |
line wrap: on
line diff
--- a/artifacts/src/main/java/org/dive4elements/river/utils/RiverUtils.java Fri Jun 26 18:11:27 2015 +0200 +++ b/artifacts/src/main/java/org/dive4elements/river/utils/RiverUtils.java Fri Jun 26 19:33:17 2015 +0200 @@ -441,7 +441,7 @@ * @param flys the artifact in question. * @return Reference / first gauge of locations of river of artifact. */ - public static Gauge getGauge(D4EArtifact flys) { + private static Gauge getGauge(D4EArtifact flys) { River river = getRiver(flys); RangeAccess rangeAccess = new RangeAccess(flys); double[] dist = rangeAccess.getKmRange();