Mercurial > dive4elements > river
comparison artifacts/src/main/java/org/dive4elements/river/artifacts/states/minfo/SedimentLoadYearSelect.java @ 6101:a0078e5e3b39
Removed unused context from RangeAccess and subclasses leading to some dead code removal.
author | Sascha L. Teichmann <teichmann@intevation.de> |
---|---|
date | Sat, 25 May 2013 19:32:58 +0200 |
parents | af13ceeba52a |
children | e4606eae8ea5 |
comparison
equal
deleted
inserted
replaced
6100:de92e0cdebdc | 6101:a0078e5e3b39 |
---|---|
42 | 42 |
43 @Override | 43 @Override |
44 public boolean validate(Artifact artifact) | 44 public boolean validate(Artifact artifact) |
45 throws IllegalArgumentException | 45 throws IllegalArgumentException |
46 { | 46 { |
47 SedimentLoadAccess access = new SedimentLoadAccess((D4EArtifact) artifact, null); | 47 SedimentLoadAccess access = new SedimentLoadAccess((D4EArtifact) artifact); |
48 | 48 |
49 // Second year should be later than first. | 49 // Second year should be later than first. |
50 if (access.getPeriod() != null && access.getPeriod()[1] < access.getPeriod()[0]) | 50 if (access.getPeriod() != null && access.getPeriod()[1] < access.getPeriod()[0]) |
51 throw new IllegalArgumentException("error_years_wrong"); | 51 throw new IllegalArgumentException("error_years_wrong"); |
52 | 52 |