Mercurial > dive4elements > river
changeset 1698:6e935087f6a1
XYChartGenerator: s/new Integer(small)/Integer.valueOf(small)/
flys-artifacts/trunk@2929 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Sascha L. Teichmann <sascha.teichmann@intevation.de> |
---|---|
date | Mon, 10 Oct 2011 14:22:53 +0000 |
parents | 2a6baa9e1576 |
children | 608859aa5a7e |
files | flys-artifacts/ChangeLog flys-artifacts/src/main/java/de/intevation/flys/exports/XYChartGenerator.java |
diffstat | 2 files changed, 12 insertions(+), 7 deletions(-) [+] |
line wrap: on
line diff
--- a/flys-artifacts/ChangeLog Mon Oct 10 14:00:18 2011 +0000 +++ b/flys-artifacts/ChangeLog Mon Oct 10 14:22:53 2011 +0000 @@ -1,3 +1,8 @@ +2011-10-10 Sascha L. Teichmann <sascha.teichmann@intevation.de> + + * src/main/java/de/intevation/flys/exports/XYChartGenerator.java: + s/new Integer(small)/Integer.valueOf(small)/ + 2011-10-10 Sascha L. Teichmann <sascha.teichmann@intevation.de> * src/main/java/de/intevation/flys/exports/CrossSectionGenerator.java,
--- a/flys-artifacts/src/main/java/de/intevation/flys/exports/XYChartGenerator.java Mon Oct 10 14:00:18 2011 +0000 +++ b/flys-artifacts/src/main/java/de/intevation/flys/exports/XYChartGenerator.java Mon Oct 10 14:22:53 2011 +0000 @@ -193,7 +193,7 @@ private void combineXRanges(Range range, int index) { - Integer key = new Integer(index); + Integer key = Integer.valueOf(index); if (xRanges == null) { xRanges = new HashMap<Integer, Range>(); @@ -216,7 +216,7 @@ private void combineYRanges(Range range, int index) { - Integer key = new Integer(index); + Integer key = Integer.valueOf(index); if (yRanges == null) { yRanges = new HashMap<Integer, Range>(); @@ -264,7 +264,7 @@ private void preparePointRanges(XYPlot plot) { for (int i = 0, num = plot.getDomainAxisCount(); i < num; i++) { - Integer key = new Integer(i); + Integer key = Integer.valueOf(i); Range r = xRanges.get(key); if (r != null && r.getLowerBound() == r.getUpperBound()) { @@ -273,7 +273,7 @@ } for (int i = 0, num = plot.getRangeAxisCount(); i < num; i++) { - Integer key = new Integer(i); + Integer key = Integer.valueOf(i); Range r = yRanges.get(key); if (r != null && r.getLowerBound() == r.getUpperBound()) { @@ -315,7 +315,7 @@ for (int i = 0, num = plot.getRangeAxisCount(); i < num; i++) { Range[] ranges = new Range[] { xRanges.get(0), - yRanges.get(new Integer(i)) }; + yRanges.get(Integer.valueOf(i)) }; if (i == 0) { ValueAxis xaxis = plot.getDomainAxis(); @@ -385,8 +385,8 @@ */ public Range[] getRangesForDataset(int index) { return new Range[] { - xRanges.get(new Integer(0)), - yRanges.get(new Integer(index)) + xRanges.get(Integer.valueOf(0)), + yRanges.get(Integer.valueOf(index)) }; }