[Dive4elements-commits] [PATCH 02 of 10] ExtremeAccess: Renamed log to logger, documentation
Wald Commits
scm-commit at wald.intevation.org
Wed Oct 31 14:09:02 CET 2012
# HG changeset patch
# User Felix Wolfsteller <felix.wolfsteller at intevation.de>
# Date 1351687476 -3600
# Node ID 0545002e112c5222357b794f5246e0b7683f5483
# Parent cf419a37e8364998d76b6b0506f55420c2bae166
ExtremeAccess: Renamed log to logger, documentation.
diff -r cf419a37e836 -r 0545002e112c flys-artifacts/src/main/java/de/intevation/flys/artifacts/access/ExtremeAccess.java
--- a/flys-artifacts/src/main/java/de/intevation/flys/artifacts/access/ExtremeAccess.java Wed Oct 31 11:46:15 2012 +0100
+++ b/flys-artifacts/src/main/java/de/intevation/flys/artifacts/access/ExtremeAccess.java Wed Oct 31 13:44:36 2012 +0100
@@ -15,7 +15,8 @@
public class ExtremeAccess
extends RiverAccess
{
- private static Logger log = Logger.getLogger(ExtremeAccess.class);
+ /** Our private logger. */
+ private static Logger logger = Logger.getLogger(ExtremeAccess.class);
protected Double from;
protected Double to;
@@ -34,6 +35,7 @@
public ExtremeAccess() {
}
+
public ExtremeAccess(FLYSArtifact artifact) {
super(artifact);
}
@@ -46,8 +48,8 @@
from = getDouble("ld_from");
}
- if (log.isDebugEnabled()) {
- log.debug("from: '" + from + "'");
+ if (logger.isDebugEnabled()) {
+ logger.debug("from: '" + from + "'");
}
return from;
@@ -61,8 +63,8 @@
to = getDouble("ld_to");
}
- if (log.isDebugEnabled()) {
- log.debug("to: '" + to + "'");
+ if (logger.isDebugEnabled()) {
+ logger.debug("to: '" + to + "'");
}
return to;
@@ -76,21 +78,23 @@
step = getDouble("ld_step");
}
- if (log.isDebugEnabled()) {
- log.debug("step: '" + step + "'");
+ if (logger.isDebugEnabled()) {
+ logger.debug("step: '" + step + "'");
}
return step;
}
+
+ /** Returns the percent given. */
public Double getPercent() {
if (percent == null) {
percent = getDouble("percent");
}
- if (log.isDebugEnabled()) {
- log.debug("percent: '" + percent + "'");
+ if (logger.isDebugEnabled()) {
+ logger.debug("percent: '" + percent + "'");
}
return percent;
@@ -101,8 +105,8 @@
function = getString("function");
}
- if (log.isDebugEnabled()) {
- log.debug("function: '" + function + "'");
+ if (logger.isDebugEnabled()) {
+ logger.debug("function: '" + function + "'");
}
return function;
@@ -124,8 +128,8 @@
});
}
- if (log.isDebugEnabled()) {
- log.debug("ranges: " + ranges);
+ if (logger.isDebugEnabled()) {
+ logger.debug("ranges: " + ranges);
}
return ranges;
More information about the Dive4elements-commits
mailing list