Mercurial > dive4elements > river
comparison artifacts/src/main/java/org/dive4elements/river/artifacts/context/RiverContext.java @ 8220:1d3d61c8f596
Stop stupid propagation of out subtype in generators. What is this? It is not used anyway.
author | Sascha L. Teichmann <teichmann@intevation.de> |
---|---|
date | Mon, 08 Sep 2014 13:33:39 +0200 |
parents | 9667900536b6 |
children | f98598cf798c |
comparison
equal
deleted
inserted
replaced
8219:9667900536b6 | 8220:1d3d61c8f596 |
---|---|
91 * | 91 * |
92 * @return Instance of an OutGenerator for specified <i>type</i>. | 92 * @return Instance of an OutGenerator for specified <i>type</i>. |
93 */ | 93 */ |
94 public static OutGenerator getOutGenerator( | 94 public static OutGenerator getOutGenerator( |
95 CallContext context, | 95 CallContext context, |
96 String name, | 96 String name |
97 String type) | 97 ) { |
98 { | |
99 | |
100 RiverContext flysContext = context instanceof RiverContext | 98 RiverContext flysContext = context instanceof RiverContext |
101 ? (RiverContext) context | 99 ? (RiverContext) context |
102 : (RiverContext) context.globalContext(); | 100 : (RiverContext) context.globalContext(); |
103 | 101 |
104 GeneratorLookup generators = | 102 GeneratorLookup generators = |