Mercurial > dive4elements > river
diff flys-artifacts/src/main/java/de/intevation/flys/artifacts/FLYSArtifact.java @ 1137:073c36bb94ed
Minor cosmetics
flys-artifacts/trunk@2658 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Felix Wolfsteller <felix.wolfsteller@intevation.de> |
---|---|
date | Wed, 07 Sep 2011 07:37:22 +0000 |
parents | ea80e652f033 |
children | 28154920e0b3 |
line wrap: on
line diff
--- a/flys-artifacts/src/main/java/de/intevation/flys/artifacts/FLYSArtifact.java Wed Sep 07 07:28:52 2011 +0000 +++ b/flys-artifacts/src/main/java/de/intevation/flys/artifacts/FLYSArtifact.java Wed Sep 07 07:37:22 2011 +0000 @@ -714,6 +714,7 @@ return new ArrayList<Output>(); } + protected List<Output> getOutputForState(DefaultState state) { List<Output> list = state.getOutputs(); if (list == null || list.size() == 0) { @@ -828,6 +829,13 @@ return compute(context, hash, current, type, generateFacets); } + + /** + * @param key key of state + * @param state state + * @param type Type of compute + * @param generateFacets Whether new facets shall be generated. + */ public Object compute( CallContext context, String key, @@ -837,7 +845,7 @@ ) { String stateID = state.getID(); - List<Facet> fs = generateFacets ? new ArrayList<Facet>() : null; + List<Facet> fs = (generateFacets) ? new ArrayList<Facet>() : null; try { Cache cache = CacheFactory.getCache(COMPUTING_CACHE);