From ff0ad0493ee1729c726587f667761b04101d774c Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Tue, 12 Aug 2014 15:09:06 +0200 Subject: java: use 'Integer.valueOf' instead of 'new Integer' Change-Id: Ia8befb8d69914ce971174fc5f2ffc0e2f506a940 --- sc/qa/complex/dataPilot/CheckDataPilot.java | 4 ++-- sc/qa/complex/sc/CalcRTL.java | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) (limited to 'sc/qa/complex') diff --git a/sc/qa/complex/dataPilot/CheckDataPilot.java b/sc/qa/complex/dataPilot/CheckDataPilot.java index efa3aee6b6f3..ee4980fece72 100644 --- a/sc/qa/complex/dataPilot/CheckDataPilot.java +++ b/sc/qa/complex/dataPilot/CheckDataPilot.java @@ -249,7 +249,7 @@ public class CheckDataPilot { int y = sCellAdress.Row + 3; // cell of the data pilot output oCheckCell = oSheet.getCellByPosition(x, y); - aChangeValue = new Integer(27); + aChangeValue = Integer.valueOf(27); } catch (com.sun.star.lang.IndexOutOfBoundsException e) { e.printStackTrace(); throw new StatusException( "Couldn't get cells for changing.", e); @@ -335,7 +335,7 @@ public class CheckDataPilot { param.put("CELLFORCHANGE", oChangeCell); param.put("CELLFORCHECK", oCheckCell); param.put("CHANGEVALUE", aChangeValue); - param.put("FIELDSAMOUNT", new Integer(5)); + param.put("FIELDSAMOUNT", Integer.valueOf(5)); } diff --git a/sc/qa/complex/sc/CalcRTL.java b/sc/qa/complex/sc/CalcRTL.java index 0a1e15d5968d..d1f96aae8650 100644 --- a/sc/qa/complex/sc/CalcRTL.java +++ b/sc/qa/complex/sc/CalcRTL.java @@ -132,10 +132,10 @@ public class CalcRTL /* extends ComplexTestCase */ } assertTrue("Problems when setting property 'HoriOrientPosition'", - changeProperty(set, "HoriOrientPosition", new Integer(1000))); + changeProperty(set, "HoriOrientPosition", Integer.valueOf(1000))); assertTrue("Problems when setting property 'VertOrientPosition'", - changeProperty(set, "VertOrientPosition", new Integer(1000))); + changeProperty(set, "VertOrientPosition", Integer.valueOf(1000))); assertTrue("Couldn't close document", closeSpreadsheetDocument()); } @@ -188,7 +188,7 @@ public class CalcRTL /* extends ComplexTestCase */ reValue[0] = toString(getRealValue(set.getPropertyValue("Anchor"))); reValue[1] = toString(set.getPropertyValue("HoriOrientPosition")); reValue[2] = toString(set.getPropertyValue("VertOrientPosition")); - reValue[3] = toString(new Integer(oShape.getPosition().X)); + reValue[3] = toString(Integer.valueOf(oShape.getPosition().X)); } catch (com.sun.star.beans.UnknownPropertyException e) { } catch (com.sun.star.lang.WrappedTargetException e) { } -- cgit