comparison artifacts/src/main/java/org/dive4elements/river/exports/injector/KmFromGaugeNameInjector.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 8c60595fd74c
children a805211690f7
comparison
equal deleted inserted replaced
8855:d7c005e12af0 8856:5e38e2924c07
15 15
16 public class KmFromGaugeNameInjector 16 public class KmFromGaugeNameInjector
17 implements ContextInjector 17 implements ContextInjector
18 { 18 {
19 19
20 private static Logger log = Logger.getLogger(KmFromGaugeNameInjector.class); 20 private static Logger log = Logger.getLogger(
21 KmFromGaugeNameInjector.class);
21 22
22 @Override 23 @Override
23 public void setup(Element cfg) { 24 public void setup(Element cfg) {
24 } 25 }
25 26
26 @Override 27 @Override
27 public void injectContext(CallContext ctx, Artifact artifact, Document doc) { 28 public void injectContext(
29 CallContext ctx,
30 Artifact artifact,
31 Document doc
32 ) {
28 if (ctx.getContextValue(CURRENT_KM) instanceof Number) { 33 if (ctx.getContextValue(CURRENT_KM) instanceof Number) {
29 return; 34 return;
30 } 35 }
31 36
32 D4EArtifact d4e = (D4EArtifact)artifact; 37 D4EArtifact d4e = (D4EArtifact)artifact;

http://dive4elements.wald.intevation.org