Mercurial > dive4elements > river
changeset 3910:5e7da178daa6
Cosmetics.
flys-artifacts/trunk@5577 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Sascha L. Teichmann <sascha.teichmann@intevation.de> |
---|---|
date | Sun, 23 Sep 2012 16:26:51 +0000 |
parents | fe70edde0897 |
children | 36507c71725b |
files | flys-artifacts/ChangeLog flys-artifacts/src/main/java/de/intevation/flys/artifacts/services/GaugeInfoService.java |
diffstat | 2 files changed, 12 insertions(+), 9 deletions(-) [+] |
line wrap: on
line diff
--- a/flys-artifacts/ChangeLog Sun Sep 23 16:08:36 2012 +0000 +++ b/flys-artifacts/ChangeLog Sun Sep 23 16:26:51 2012 +0000 @@ -1,3 +1,8 @@ +2012-09-23 Sascha L. Teichmann <sascha.teichmann@intevation.de> + + * src/main/java/de/intevation/flys/artifacts/services/GaugeInfoService.java: + Cosmetics. + 2012-09-23 Sascha L. Teichmann <sascha.teichmann@intevation.de> * src/main/java/de/intevation/flys/artifacts/StaticWKmsArtifact.java:
--- a/flys-artifacts/src/main/java/de/intevation/flys/artifacts/services/GaugeInfoService.java Sun Sep 23 16:08:36 2012 +0000 +++ b/flys-artifacts/src/main/java/de/intevation/flys/artifacts/services/GaugeInfoService.java Sun Sep 23 16:26:51 2012 +0000 @@ -32,7 +32,7 @@ } - protected class ReferenceNumberFilter implements Filter { + private static final class ReferenceNumberFilter implements Filter { private long refNr; public ReferenceNumberFilter(long refNr) { @@ -41,14 +41,11 @@ @Override public boolean apply(Gauge gauge) { - logger.debug("Test gauge '" + gauge.getName() + "'"); + if (logger.isDebugEnabled()) { + logger.debug("Test gauge '" + gauge.getName() + "'"); + } - if (gauge != null && gauge.getOfficialNumber() == refNr) { - return true; - } - else { - return false; - } + return gauge != null && gauge.getOfficialNumber() == refNr; } } // end of ReferenceNumberFilter class @@ -120,7 +117,8 @@ if (refNr != null && refNr.length() > 0) { try { - filters.add(new ReferenceNumberFilter(Long.valueOf(refNr))); + filters.add( + new ReferenceNumberFilter(Long.parseLong(refNr))); } catch (NumberFormatException nfe) { logger.warn(nfe, nfe);