Mercurial > dive4elements > river
changeset 3452:200e70f31f6f
Removed some superfluous casts.
flys-artifacts/trunk@5115 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Sascha L. Teichmann <sascha.teichmann@intevation.de> |
---|---|
date | Tue, 24 Jul 2012 08:03:28 +0000 (2012-07-24) |
parents | b5eec54bd4a2 |
children | e74e707ff650 |
files | flys-artifacts/ChangeLog flys-artifacts/src/main/java/de/intevation/flys/artifacts/model/Calculation6.java flys-artifacts/src/main/java/de/intevation/flys/artifacts/model/WQTimerange.java flys-artifacts/src/main/java/de/intevation/flys/artifacts/states/SoundingsSelect.java flys-artifacts/src/main/java/de/intevation/flys/artifacts/states/WQAdapted.java flys-artifacts/src/main/java/de/intevation/flys/collections/FLYSArtifactCollection.java |
diffstat | 6 files changed, 14 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/flys-artifacts/ChangeLog Mon Jul 23 16:22:30 2012 +0000 +++ b/flys-artifacts/ChangeLog Tue Jul 24 08:03:28 2012 +0000 @@ -1,3 +1,12 @@ +2012-07-23 Sascha L. Teichmann <sascha.teichmann@intevation.de> + + * src/main/java/de/intevation/flys/artifacts/model/Calculation6.java, + src/main/java/de/intevation/flys/artifacts/model/WQTimerange.java, + src/main/java/de/intevation/flys/artifacts/states/SoundingsSelect.java, + src/main/java/de/intevation/flys/artifacts/states/WQAdapted.java, + src/main/java/de/intevation/flys/collections/FLYSArtifactCollection.java: + Removed some superfluous casts. + 2012-07-23 Sascha L. Teichmann <sascha.teichmann@intevation.de> * src/main/java/de/intevation/flys/artifacts/model/fixings/FixCalculation.java:
--- a/flys-artifacts/src/main/java/de/intevation/flys/artifacts/model/Calculation6.java Mon Jul 23 16:22:30 2012 +0000 +++ b/flys-artifacts/src/main/java/de/intevation/flys/artifacts/model/Calculation6.java Tue Jul 24 08:03:28 2012 +0000 @@ -191,7 +191,7 @@ } } - return (WQTimerange[]) wqts.toArray(new WQTimerange[wqts.size()]); + return wqts.toArray(new WQTimerange[wqts.size()]); }
--- a/flys-artifacts/src/main/java/de/intevation/flys/artifacts/model/WQTimerange.java Mon Jul 23 16:22:30 2012 +0000 +++ b/flys-artifacts/src/main/java/de/intevation/flys/artifacts/model/WQTimerange.java Tue Jul 24 08:03:28 2012 +0000 @@ -36,7 +36,7 @@ public Timerange[] getTimeranges() { - return (Timerange[]) ts.toArray(new Timerange[ts.size()]); + return ts.toArray(new Timerange[ts.size()]); } } // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 :
--- a/flys-artifacts/src/main/java/de/intevation/flys/artifacts/states/SoundingsSelect.java Mon Jul 23 16:22:30 2012 +0000 +++ b/flys-artifacts/src/main/java/de/intevation/flys/artifacts/states/SoundingsSelect.java Tue Jul 24 08:03:28 2012 +0000 @@ -62,7 +62,7 @@ appendSingles(river, kmLo, kmHi, kvp); appendEpochs(river, kmLo, kmHi, kvp); - return (KVP<String,String>[]) kvp.toArray(new KVP[kvp.size()]); + return kvp.toArray(new KVP[kvp.size()]); }
--- a/flys-artifacts/src/main/java/de/intevation/flys/artifacts/states/WQAdapted.java Mon Jul 23 16:22:30 2012 +0000 +++ b/flys-artifacts/src/main/java/de/intevation/flys/artifacts/states/WQAdapted.java Tue Jul 24 08:03:28 2012 +0000 @@ -453,7 +453,7 @@ rwv.add(new RangeWithValues(lower, upper, res)); } - return (RangeWithValues[]) rwv.toArray(new RangeWithValues[rwv.size()]); + return rwv.toArray(new RangeWithValues[rwv.size()]); } } // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf-8 :
--- a/flys-artifacts/src/main/java/de/intevation/flys/collections/FLYSArtifactCollection.java Mon Jul 23 16:22:30 2012 +0000 +++ b/flys-artifacts/src/main/java/de/intevation/flys/collections/FLYSArtifactCollection.java Tue Jul 24 08:03:28 2012 +0000 @@ -580,7 +580,7 @@ } } - return (String[]) uuids.toArray(new String[uuids.size()]); + return uuids.toArray(new String[uuids.size()]); }