comparison artifacts/src/main/java/org/dive4elements/river/artifacts/states/WQFixing.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 e4606eae8ea5
children 0a5239a1e46e
comparison
equal deleted inserted replaced
8855:d7c005e12af0 8856:5e38e2924c07
27 public boolean validate(Artifact artifact) 27 public boolean validate(Artifact artifact)
28 throws IllegalArgumentException 28 throws IllegalArgumentException
29 { 29 {
30 log.debug("WQFixing.validate"); 30 log.debug("WQFixing.validate");
31 31
32 RangeWithValues[] rwvs = extractInput(getData((D4EArtifact) artifact, "wq_values")); 32 RangeWithValues[] rwvs = extractInput(
33 getData((D4EArtifact) artifact, "wq_values"));
33 34
34 if (rwvs == null) { 35 if (rwvs == null) {
35 throw new IllegalArgumentException("error_missing_wq_data"); 36 throw new IllegalArgumentException("error_missing_wq_data");
36 } 37 }
37 38
38 for (RangeWithValues rwv: rwvs) { 39 for (RangeWithValues rwv: rwvs) {
39 double[] values = rwv.getValues(); 40 double[] values = rwv.getValues();
40 for (double val: values) { 41 for (double val: values) {
41 if (val <= 0) { 42 if (val <= 0) {
42 throw new IllegalArgumentException("error_validate_positive"); 43 throw new IllegalArgumentException(
44 "error_validate_positive");
43 } 45 }
44 } 46 }
45 } 47 }
46 48
47 return true; 49 return true;

http://dive4elements.wald.intevation.org