Mercurial > dive4elements > river
changeset 2123:907322e269e3
Cosmetics.
flys-artifacts/trunk@3693 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Felix Wolfsteller <felix.wolfsteller@intevation.de> |
---|---|
date | Tue, 17 Jan 2012 08:09:03 +0000 (2012-01-17) |
parents | 81312f84689a |
children | a202a9e048a5 |
files | flys-artifacts/ChangeLog flys-artifacts/src/main/java/de/intevation/flys/artifacts/states/WaterlevelState.java |
diffstat | 2 files changed, 12 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/flys-artifacts/ChangeLog Tue Jan 17 08:01:22 2012 +0000 +++ b/flys-artifacts/ChangeLog Tue Jan 17 08:09:03 2012 +0000 @@ -1,3 +1,8 @@ +2012-01-17 Felix Wolfsteller <felix.wolfsteller@intevation.de> + + * src/main/java/de/intevation/flys/artifacts/states/WaterlevelState.java: + Minor cosmetics. + 2012-01-17 Felix Wolfsteller <felix.wolfsteller@intevation.de> Refactoring.
--- a/flys-artifacts/src/main/java/de/intevation/flys/artifacts/states/WaterlevelState.java Tue Jan 17 08:01:22 2012 +0000 +++ b/flys-artifacts/src/main/java/de/intevation/flys/artifacts/states/WaterlevelState.java Tue Jan 17 08:09:03 2012 +0000 @@ -37,6 +37,10 @@ } + /** + * Compute result or returned object from cache, create facets. + * @param old Object that was cached. + */ protected Object compute( WINFOArtifact winfo, CallContext cc, @@ -47,17 +51,17 @@ String id = getID(); CalculationResult res = old instanceof CalculationResult - ? (CalculationResult)old + ? (CalculationResult) old : winfo.getWaterlevelData(); if (facets == null) { return res; } - WQKms [] wqkms = (WQKms [])res.getData(); + WQKms [] wqkms = (WQKms []) res.getData(); for (int i = 0; i < wqkms.length; i++) { - String name = wqkms[i].getName(); + String name = wqkms[i].getName(); String nameW = FLYSUtils.createWspWTitle(winfo, cc, name); String nameQ = FLYSUtils.createWspQTitle(winfo, cc, name);