# HG changeset patch # User Sascha L. Teichmann # Date 1347985491 0 # Node ID c0a15547ad766ef5c189157b71df50a5a7e77928 # Parent d12f108ccc9c15a2e997f8b956a4e9f025729b21 Use generics aware Collections.emptyList(). flys-artifacts/trunk@5511 c6561f87-3c4e-4783-a992-168aeb5c3f6f diff -r d12f108ccc9c -r c0a15547ad76 flys-artifacts/ChangeLog --- a/flys-artifacts/ChangeLog Tue Sep 18 15:45:49 2012 +0000 +++ b/flys-artifacts/ChangeLog Tue Sep 18 16:24:51 2012 +0000 @@ -1,3 +1,10 @@ +2012-09-18 Sascha L. Teichmann + + * src/main/java/de/intevation/flys/jfree/StableXYDifferenceRenderer.java, + src/main/java/de/intevation/flys/artifacts/model/AnnotationsFactory.java, + src/main/java/de/intevation/flys/artifacts/WINFOArtifact.java: + Use generics aware Collections.emptyList(). + 2012-09-18 Sascha L. Teichmann * src/main/java/de/intevation/flys/artifacts/model/minfo/BedQualityResult.java, diff -r d12f108ccc9c -r c0a15547ad76 flys-artifacts/src/main/java/de/intevation/flys/artifacts/WINFOArtifact.java --- a/flys-artifacts/src/main/java/de/intevation/flys/artifacts/WINFOArtifact.java Tue Sep 18 15:45:49 2012 +0000 +++ b/flys-artifacts/src/main/java/de/intevation/flys/artifacts/WINFOArtifact.java Tue Sep 18 16:24:51 2012 +0000 @@ -560,12 +560,12 @@ StateData wqValues = getData("wq_values"); if (wqValues == null) { logger.warn("no wq_values given"); - return Collections.emptyList(); + return Collections.emptyList(); } String input = (String) wqValues.getValue(); if (input == null || (input = input.trim()).length() == 0) { logger.warn("wq_values are empty"); - return Collections.emptyList(); + return Collections.emptyList(); } return Segment.parseSegments(input); } diff -r d12f108ccc9c -r c0a15547ad76 flys-artifacts/src/main/java/de/intevation/flys/artifacts/model/AnnotationsFactory.java --- a/flys-artifacts/src/main/java/de/intevation/flys/artifacts/model/AnnotationsFactory.java Tue Sep 18 15:45:49 2012 +0000 +++ b/flys-artifacts/src/main/java/de/intevation/flys/artifacts/model/AnnotationsFactory.java Tue Sep 18 16:24:51 2012 +0000 @@ -100,8 +100,7 @@ riverQuery.setParameter("name", riverName); List rivers = riverQuery.list(); if (rivers.isEmpty()) { - List list = Collections.emptyList(); - return list.iterator(); + return Collections.emptyList().iterator(); } Query query = session.createQuery( diff -r d12f108ccc9c -r c0a15547ad76 flys-artifacts/src/main/java/de/intevation/flys/jfree/StableXYDifferenceRenderer.java --- a/flys-artifacts/src/main/java/de/intevation/flys/jfree/StableXYDifferenceRenderer.java Tue Sep 18 15:45:49 2012 +0000 +++ b/flys-artifacts/src/main/java/de/intevation/flys/jfree/StableXYDifferenceRenderer.java Tue Sep 18 16:24:51 2012 +0000 @@ -846,7 +846,7 @@ switch (dataset.getSeriesCount()) { case 0: - return Collections.emptyList(); + return Collections.emptyList(); case 1: return splitByNaNsOneSeries(dataset); default: // two or more