summaryrefslogtreecommitdiff
path: root/qadevOOo/tests/java/ifc/style
diff options
context:
space:
mode:
Diffstat (limited to 'qadevOOo/tests/java/ifc/style')
-rw-r--r--qadevOOo/tests/java/ifc/style/_CharacterProperties.java12
-rw-r--r--qadevOOo/tests/java/ifc/style/_ParagraphProperties.java6
-rw-r--r--qadevOOo/tests/java/ifc/style/_ParagraphPropertiesComplex.java6
3 files changed, 12 insertions, 12 deletions
diff --git a/qadevOOo/tests/java/ifc/style/_CharacterProperties.java b/qadevOOo/tests/java/ifc/style/_CharacterProperties.java
index da30b2cbed20..7a53627de3e4 100644
--- a/qadevOOo/tests/java/ifc/style/_CharacterProperties.java
+++ b/qadevOOo/tests/java/ifc/style/_CharacterProperties.java
@@ -250,13 +250,13 @@ public class _CharacterProperties extends MultiPropertyTest {
Object oPara = tEnv.getObjRelation("PARA");
Object oPort = tEnv.getObjRelation("PORTION");
if (oPara == null) {
- testProperty("RubyAdjust",new Short((short)0),new Short((short)1));
+ testProperty("RubyAdjust",Short.valueOf((short)0),Short.valueOf((short)1));
} else {
- Short aShort = new Short((short) 1);
+ Short aShort = Short.valueOf((short) 1);
changeProp((XPropertySet) oPara,
(XPropertySet) oPort,"RubyAdjust", aShort);
}
- new Short((short) 1);
+ Short.valueOf((short) 1);
}
/**
@@ -324,7 +324,7 @@ public class _CharacterProperties extends MultiPropertyTest {
* new value must be specified.
*/
public void _CharRotation() {
- Short aShort = new Short((short) 10);
+ Short aShort = Short.valueOf((short) 10);
changeProp(oObj,oObj, "CharRotation", aShort);
}
@@ -360,8 +360,8 @@ public class _CharacterProperties extends MultiPropertyTest {
}
if (name.equals("CharRotation")) {
- Short s1 = new Short((short) 0);
- Short s2 = new Short((short) 900);
+ Short s1 = Short.valueOf((short) 0);
+ Short s2 = Short.valueOf((short) 900);
if (gValue.equals(s1)) {
ValueToSet = s2;
} else {
diff --git a/qadevOOo/tests/java/ifc/style/_ParagraphProperties.java b/qadevOOo/tests/java/ifc/style/_ParagraphProperties.java
index 33caa19966f3..27f5788caf51 100644
--- a/qadevOOo/tests/java/ifc/style/_ParagraphProperties.java
+++ b/qadevOOo/tests/java/ifc/style/_ParagraphProperties.java
@@ -171,10 +171,10 @@ public class _ParagraphProperties extends MultiPropertyTest {
@Override
protected Object getNewValue(String propName, Object oldValue) {
if ((oldValue != null) &&
- (oldValue.equals(new Short((short) 0)))) {
- return new Short((short) 2);
+ (oldValue.equals(Short.valueOf((short) 0)))) {
+ return Short.valueOf((short) 2);
} else {
- return new Short((short) 0);
+ return Short.valueOf((short) 0);
}
}
};
diff --git a/qadevOOo/tests/java/ifc/style/_ParagraphPropertiesComplex.java b/qadevOOo/tests/java/ifc/style/_ParagraphPropertiesComplex.java
index a05b4d2946cb..09c00af10e26 100644
--- a/qadevOOo/tests/java/ifc/style/_ParagraphPropertiesComplex.java
+++ b/qadevOOo/tests/java/ifc/style/_ParagraphPropertiesComplex.java
@@ -32,9 +32,9 @@ public class _ParagraphPropertiesComplex extends MultiPropertyTest {
protected PropertyTester WritingModeTester = new PropertyTester() {
@Override
protected Object getNewValue(String propName, Object oldValue) {
- if ((oldValue != null) && (oldValue.equals(new Short(com.sun.star.text.WritingMode2.LR_TB))))
- return new Short(com.sun.star.text.WritingMode2.PAGE); else
- return new Short(com.sun.star.text.WritingMode2.LR_TB);
+ if ((oldValue != null) && (oldValue.equals(Short.valueOf(com.sun.star.text.WritingMode2.LR_TB))))
+ return Short.valueOf(com.sun.star.text.WritingMode2.PAGE); else
+ return Short.valueOf(com.sun.star.text.WritingMode2.LR_TB);
}
} ;