summaryrefslogtreecommitdiff
path: root/sc/qa/complex
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2014-08-12 15:09:06 +0200
committerNoel Grandin <noel@peralex.com>2014-08-19 14:57:17 +0200
commitff0ad0493ee1729c726587f667761b04101d774c (patch)
tree8c0f97e8740fbdb2ed0cdbfc5d99d82cae8f7df6 /sc/qa/complex
parentbe1bb7b1ccee28be616b89cc95e97d656e78bbe3 (diff)
java: use 'Integer.valueOf' instead of 'new Integer'
Change-Id: Ia8befb8d69914ce971174fc5f2ffc0e2f506a940
Diffstat (limited to 'sc/qa/complex')
-rw-r--r--sc/qa/complex/dataPilot/CheckDataPilot.java4
-rw-r--r--sc/qa/complex/sc/CalcRTL.java6
2 files changed, 5 insertions, 5 deletions
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) {
}