Mercurial > dive4elements > river
diff artifacts/src/main/java/org/dive4elements/river/utils/RiverUtils.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 | a5e450af498b |
children | f972e1da4a63 0a5239a1e46e |
line wrap: on
line diff
--- a/artifacts/src/main/java/org/dive4elements/river/utils/RiverUtils.java Thu Jan 18 20:10:59 2018 +0100 +++ b/artifacts/src/main/java/org/dive4elements/river/utils/RiverUtils.java Thu Jan 18 20:12:01 2018 +0100 @@ -51,7 +51,8 @@ /** * Static helper methods to e.g. access D4EArtifacts data. * - * @deprecated Don't use RiverUtils to get data from an {@link Artifact} anymore. + * @deprecated Don't use RiverUtils to get data from an + * {@link Artifact} anymore. * Instead use and/or create a {@link Access} class hierarchy. **/ @Deprecated @@ -61,7 +62,7 @@ private static Logger log = Logger.getLogger(RiverUtils.class); /** - * An enum that represents the 5 possible WQ modes in FLYS. The 5 values are + * Enum that represents the 5 possible WQ modes in FLYS. The 5 values are * <i>QFREE</i> <i>QGAUGE</i> <i>WGAUGE</i> <i>WFREE</i> and <i>NONE</i>. */ public static enum WQ_MODE { QFREE, QGAUGE, WFREE, WGAUGE, NONE }; @@ -272,7 +273,9 @@ if (locationStr == null || locationStr.length() == 0) { if (flys instanceof WINFOArtifact) { WINFOArtifact winfo = (WINFOArtifact) flys; - if (winfo.getReferenceStartKm() != null && winfo.getReferenceEndKms() != null) { + if (winfo.getReferenceStartKm() != null + && winfo.getReferenceEndKms() != null + ) { return new double[] { winfo.getReferenceStartKm().doubleValue(), @@ -589,7 +592,8 @@ for (MainValue mv: mainValues) { if (mv.getValue().doubleValue() == value) { - log.debug("Found named main value: " + mv.getMainValue().getName()); + log.debug("Found named main value: " + + mv.getMainValue().getName()); return mv.getMainValue().getName(); } } @@ -695,10 +699,12 @@ String diffs = ""; for(int i = 0; i < datas.length; i+=2) { // e.g.: - // 42537f1e-3522-42ef-8968-635b03d8e9c6;longitudinal_section.w;1 - WKms minuendWKms = wState.getWKms(StringUtil.unbracket(datas[i+0]), + //42537f1e-3522-42ef-8968-635b03d8e9c6;longitudinal_section.w;1 + WKms minuendWKms = wState.getWKms( + StringUtil.unbracket(datas[i + 0]), context, 0, 0); - WKms subtrahendWKms = wState.getWKms(StringUtil.unbracket(datas[i+1]), + WKms subtrahendWKms = wState.getWKms( + StringUtil.unbracket(datas[i + 1]), context, 0, 0); if (minuendWKms != null && subtrahendWKms != null) { diffs += StringUtil.wWrap(minuendWKms.getName())