[PATCH] Fixed broken build

Wald Commits scm-commit at wald.intevation.org
Fri Sep 5 18:30:24 CEST 2014


# HG changeset patch
# User Sascha L. Teichmann <teichmann at intevation.de>
# Date 1409934620 -7200
# Node ID 5114b643a6d6ca0dc4f58202f390d96f18ed8275
# Parent  2badb2ca5f895a5cebc74dc5f6ccb0b4d8230ec5
Fixed broken build.

diff -r 2badb2ca5f89 -r 5114b643a6d6 artifacts/src/main/java/org/dive4elements/river/artifacts/model/minfo/SedimentLoadData.java
--- a/artifacts/src/main/java/org/dive4elements/river/artifacts/model/minfo/SedimentLoadData.java	Fri Sep 05 18:23:36 2014 +0200
+++ b/artifacts/src/main/java/org/dive4elements/river/artifacts/model/minfo/SedimentLoadData.java	Fri Sep 05 18:30:20 2014 +0200
@@ -61,6 +61,12 @@
         /* GF_BED_LOAD_SUSP_SAND */ Station.BED_LOAD
     };
 
+    public static final int measurementStationType(int grainFraction) {
+        return grainFraction < 0 || grainFraction >= MEASUREMENT_STATION_GF.length
+            ? Station.UNKNOWN
+            : MEASUREMENT_STATION_GF[grainFraction];
+    }
+
     public static final int grainFractionIndex(String name) {
         for (int i = 0; i < GF_NAMES.length; ++i) {
             if (GF_NAMES[i].equals(name)) {


More information about the Dive4Elements-commits mailing list