Mercurial > dive4elements > river
comparison flys-artifacts/src/main/java/de/intevation/flys/jfree/StableXYDifferenceRenderer.java @ 3876:c0a15547ad76
Use generics aware Collections.emptyList().
flys-artifacts/trunk@5511 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Sascha L. Teichmann <sascha.teichmann@intevation.de> |
---|---|
date | Tue, 18 Sep 2012 16:24:51 +0000 |
parents | d12f108ccc9c |
children | 22cd60315e08 |
comparison
equal
deleted
inserted
replaced
3875:d12f108ccc9c | 3876:c0a15547ad76 |
---|---|
844 | 844 |
845 public static List<XYDataset> splitByNaNs(XYDataset dataset) { | 845 public static List<XYDataset> splitByNaNs(XYDataset dataset) { |
846 | 846 |
847 switch (dataset.getSeriesCount()) { | 847 switch (dataset.getSeriesCount()) { |
848 case 0: | 848 case 0: |
849 return Collections.emptyList(); | 849 return Collections.<XYDataset>emptyList(); |
850 case 1: | 850 case 1: |
851 return splitByNaNsOneSeries(dataset); | 851 return splitByNaNsOneSeries(dataset); |
852 default: // two or more | 852 default: // two or more |
853 return splitByNaNsTwoSeries(dataset); | 853 return splitByNaNsTwoSeries(dataset); |
854 } | 854 } |