[PATCH 1 of 5] Minor BedHeightAccess refactoring
Wald Commits
scm-commit at wald.intevation.org
Wed Oct 16 15:23:53 CEST 2013
# HG changeset patch
# User Felix Wolfsteller <felix.wolfsteller at intevation.de>
# Date 1381912389 -7200
# Node ID 534850c9fabc32db40cc81f00cc608574297eca8
# Parent d12478cc5bb0f7a2557e6a15aca3f5fb78376c6d
Minor BedHeightAccess refactoring.
diff -r d12478cc5bb0 -r 534850c9fabc artifacts/src/main/java/org/dive4elements/river/artifacts/access/BedHeightAccess.java
--- a/artifacts/src/main/java/org/dive4elements/river/artifacts/access/BedHeightAccess.java Wed Oct 16 14:43:27 2013 +0200
+++ b/artifacts/src/main/java/org/dive4elements/river/artifacts/access/BedHeightAccess.java Wed Oct 16 10:33:09 2013 +0200
@@ -31,7 +31,9 @@
private int[] singleIDs;
private int[] epochIDs;
- private String time;
+ private String yearEpoch;
+
+ private Integer heightId;
public BedHeightAccess(D4EArtifact artifact) {
super(artifact);
@@ -90,10 +92,17 @@
public String getYearEpoch() {
- if (time == null) {
- time = getString("ye_select");
+ if (yearEpoch == null) {
+ yearEpoch = getString("ye_select");
}
- return time;
+ return yearEpoch;
+ }
+
+ public String getYearEpoch() {
+ if (yearEpoch == null) {
+ yearEpoch = getString("ye_select");
+ }
+ return yearEpoch;
}
More information about the Dive4elements-commits
mailing list