summaryrefslogtreecommitdiff
path: root/sc/qa/complex
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2014-08-12 15:12:27 +0200
committerNoel Grandin <noel@peralex.com>2014-08-19 14:57:18 +0200
commit0764292c5dcb7daa62e9adeb1ac9af1dbe14066f (patch)
tree17a4e9f2393d23aaba1e68bbc944aa8e18b9e2f6 /sc/qa/complex
parent8a2c6c29af41cd7a62f37861fb0d4e81a857bb45 (diff)
java: use 'Short.valueOf' instead of 'new Short'
Change-Id: Icef19ef61ee0af2dd3bda527263934006271f219
Diffstat (limited to 'sc/qa/complex')
-rw-r--r--sc/qa/complex/sc/CalcRTL.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/sc/qa/complex/sc/CalcRTL.java b/sc/qa/complex/sc/CalcRTL.java
index d1f96aae8650..5921372e8050 100644
--- a/sc/qa/complex/sc/CalcRTL.java
+++ b/sc/qa/complex/sc/CalcRTL.java
@@ -98,10 +98,10 @@ public class CalcRTL /* extends ComplexTestCase */
changeProperty(set, "PageStyle", "Default"));
assertTrue("Problems when setting property 'TableLayout'",
changeProperty(set, "TableLayout",
- new Short(com.sun.star.text.WritingMode2.RL_TB)));
+ Short.valueOf(com.sun.star.text.WritingMode2.RL_TB)));
assertTrue("Problems when setting property 'TableLayout'",
changeProperty(set, "TableLayout",
- new Short(com.sun.star.text.WritingMode2.LR_TB)));
+ Short.valueOf(com.sun.star.text.WritingMode2.LR_TB)));
assertTrue("Couldn't close document", closeSpreadsheetDocument());
}
@@ -152,12 +152,12 @@ public class CalcRTL /* extends ComplexTestCase */
String[] previous = getShapeProps(shapeProps, oShape);
assertTrue("Problems when setting property 'TableLayout'",
changeProperty(sheetProps, "TableLayout",
- new Short(com.sun.star.text.WritingMode2.RL_TB)));
+ Short.valueOf(com.sun.star.text.WritingMode2.RL_TB)));
String[] RL_TB = getShapeProps(shapeProps, oShape);
assertTrue("Problems when setting property 'TableLayout'",
changeProperty(sheetProps, "TableLayout",
- new Short(com.sun.star.text.WritingMode2.LR_TB)));
+ Short.valueOf(com.sun.star.text.WritingMode2.LR_TB)));
String[] LR_TB = getShapeProps(shapeProps, oShape);
assertTrue("Anchor has changed",