[Dive4elements-commits] [PATCH 07 of 13] Added logger and fixed data field checkup
Wald Commits
scm-commit at wald.intevation.org
Wed Nov 14 17:26:33 CET 2012
# HG changeset patch
# User Raimund Renkert <rrenkert at intevation.de>
# Date 1352909424 -3600
# Node ID 2eabb5aa0bb6cfe357cf81c47e312f81b528c04e
# Parent a5e4fae31089cf7e942ab24de498fe8bb38a533c
Added logger and fixed data field checkup.
diff -r a5e4fae31089 -r 2eabb5aa0bb6 flys-artifacts/src/main/java/de/intevation/flys/artifacts/model/minfo/SedimentLoadResult.java
--- a/flys-artifacts/src/main/java/de/intevation/flys/artifacts/model/minfo/SedimentLoadResult.java Wed Nov 14 17:06:51 2012 +0100
+++ b/flys-artifacts/src/main/java/de/intevation/flys/artifacts/model/minfo/SedimentLoadResult.java Wed Nov 14 17:10:24 2012 +0100
@@ -5,9 +5,13 @@
import java.io.Serializable;
import java.util.Set;
+import org.apache.log4j.Logger;
+
public class SedimentLoadResult
implements Serializable
{
+ private static final Logger logger = Logger
+ .getLogger(SedimentLoadResult.class);
protected int startYear;
protected int endYear;
protected SedimentLoad load;
@@ -154,30 +158,30 @@
}
public boolean hasCoarseData() {
- return getCoarseData().length > 0;
+ return getCoarseData()[0].length > 0;
}
public boolean hasFineMiddleData() {
- return getFineMiddleData().length > 0;
+ return getFineMiddleData()[0].length > 0;
}
public boolean hasSandData() {
- return getSandData().length > 0;
+ return getSandData()[0].length > 0;
}
public boolean hasSuspSandData() {
- return getSuspSandData().length > 0;
+ return getSuspSandData()[0].length > 0;
}
public boolean hasSuspSandBedData() {
- return getSuspSandBedData().length > 0;
+ return getSuspSandBedData()[0].length > 0;
}
public boolean hasSuspSedimentData() {
- return getSuspSedimentData().length > 0;
+ return getSuspSedimentData()[0].length > 0;
}
public boolean hasTotalData() {
- return getTotalData().length > 0;
+ return getTotalData()[0].length > 0;
}
}
More information about the Dive4elements-commits
mailing list