Mercurial > dive4elements > river
diff artifacts/src/main/java/org/dive4elements/river/artifacts/model/WKmsFactory.java @ 8856:5e38e2924c07 3.2.x
Fix code style.
author | Tom Gottfried <tom@intevation.de> |
---|---|
date | Thu, 18 Jan 2018 20:12:01 +0100 |
parents | 26c7aa469bfc |
children | 0a5239a1e46e |
line wrap: on
line diff
--- a/artifacts/src/main/java/org/dive4elements/river/artifacts/model/WKmsFactory.java Thu Jan 18 20:10:59 2018 +0100 +++ b/artifacts/src/main/java/org/dive4elements/river/artifacts/model/WKmsFactory.java Thu Jan 18 20:12:01 2018 +0100 @@ -87,15 +87,22 @@ private WKmsFactory() { } - public static WKms getWKms(int column, int wst_id, double from, double to) { + public static WKms getWKms( + int column, + int wst_id, + double from, + double to + ) { log.debug("WKmsFactory.getWKms"); Cache cache = CacheFactory.getCache(StaticWQKmsCacheKey.CACHE_NAME); - String cacheKey = Integer.toString(column) + ":" + Integer.toString(wst_id); + String cacheKey = Integer.toString(column) + ":" + + Integer.toString(wst_id); if (cache != null) { if (!Double.isNaN(from) && ! Double.isNaN(to)) { - cacheKey += ":" + Double.toString(from) + ":" + Double.toString(to); + cacheKey += ":" + Double.toString(from) + ":" + + Double.toString(to); } Element element = cache.get(cacheKey); if (element != null) { @@ -129,7 +136,8 @@ /** Get name for a WKms wrapped in W, if suitable. */ public static String getWKmsNameWWrapped(int column, int wst_id) { - log.debug("WKmsFactory.getWKmsNameWWrapped c/" + column + ", wst_id/" + wst_id); + log.debug("WKmsFactory.getWKmsNameWWrapped c/" + + column + ", wst_id/" + wst_id); String name = null; Session session = SessionHolder.HOLDER.get(); @@ -192,7 +200,8 @@ /** Get name for a WKms. */ public static String getWKmsName(int column, int wst_id) { - log.debug("WKmsFactory.getWKmsName c/" + column + ", wst_id/" + wst_id); + log.debug("WKmsFactory.getWKmsName c/" + + column + ", wst_id/" + wst_id); String name = null; Session session = SessionHolder.HOLDER.get(); @@ -217,10 +226,15 @@ * @param wst_id database id of the wst * @return according WKms. */ - public static WKms getWKmsUncached(int column, int wst_id, double from, double to) { - + public static WKms getWKmsUncached( + int column, + int wst_id, + double from, + double to + ) { if (log.isDebugEnabled()) { - log.debug("WKmsFactory.getWKmsUncached c/" + column + ", wst_id/" + wst_id); + log.debug("WKmsFactory.getWKmsUncached c/" + + column + ", wst_id/" + wst_id); } WKmsImpl wkms = new WKmsImpl(getWKmsName(column, wst_id));