summaryrefslogtreecommitdiff
path: root/javaunohelper
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2014-08-12 15:27:21 +0200
committerNoel Grandin <noel@peralex.com>2014-08-19 14:57:18 +0200
commit4b4bff34027cca49fd13e82d33d1b399848838fa (patch)
tree361bde1ae9cf88160694bec9d5f3c1893d398f66 /javaunohelper
parentc552aac9f889b094caaa35c3fd9d12fe7c3fc73c (diff)
java: no need to instantiate String objects directly
Change-Id: I7610774c94bf673ed3b574ffce04c4ee6ca93c03
Diffstat (limited to 'javaunohelper')
-rw-r--r--javaunohelper/test/com/sun/star/lib/uno/helper/PropertySet_Test.java12
1 files changed, 6 insertions, 6 deletions
diff --git a/javaunohelper/test/com/sun/star/lib/uno/helper/PropertySet_Test.java b/javaunohelper/test/com/sun/star/lib/uno/helper/PropertySet_Test.java
index 34e502642e56..c3f950b3031d 100644
--- a/javaunohelper/test/com/sun/star/lib/uno/helper/PropertySet_Test.java
+++ b/javaunohelper/test/com/sun/star/lib/uno/helper/PropertySet_Test.java
@@ -129,7 +129,7 @@ public class PropertySet_Test
cl.setPropertyValue("PropDoubleA",value);
ret= cl.getPropertyValue("PropDoubleA");
r[i++]= ((Double) ret).equals(value);
- value= new String("string");
+ value= "string";
cl.setPropertyValue("PropStringA",value);
ret= cl.getPropertyValue("PropStringA");
r[i++]= ((String) ret).equals(value);
@@ -204,7 +204,7 @@ public class PropertySet_Test
cl.setPropertyValue("PropObjectA",value);
ret= cl.getPropertyValue("PropObjectA");
r[i++]= ((Double) ret).equals(value);
- value= new String("string");
+ value= "string";
cl.setPropertyValue("PropObjectA",value);
ret= cl.getPropertyValue("PropObjectA");
r[i++]= ((String) ret).equals(value);
@@ -261,7 +261,7 @@ public class PropertySet_Test
cl.setPropertyValue("PropAnyA",value);
ret= cl.getPropertyValue("PropAnyA");
r[i++]= ret instanceof Any && util.anyEquals(value, ret);
- value= new String("string");
+ value= "string";
cl.setPropertyValue("PropAnyA",value);
ret= cl.getPropertyValue("PropAnyA");
r[i++]= ret instanceof Any && util.anyEquals(value, ret);
@@ -315,7 +315,7 @@ public class PropertySet_Test
cl.setPropertyValue("PropDoubleA",value);
ret= cl.getPropertyValue("PropDoubleA");
r[i++]= ret instanceof Double && util.anyEquals(value, ret);
- value= new Any(new Type(String.class), new String("string"));
+ value= new Any(new Type(String.class), "string");
cl.setPropertyValue("PropStringA",value);
ret= cl.getPropertyValue("PropStringA");
r[i++]= ret instanceof String && util.anyEquals(value, ret);
@@ -370,7 +370,7 @@ public class PropertySet_Test
cl.setPropertyValue("PropAnyA",value);
ret= cl.getPropertyValue("PropAnyA");
r[i++]= ret instanceof Any && util.anyEquals(value, ret);
- value= new Any(new Type(String.class), new String("string"));
+ value= new Any(new Type(String.class), "string");
cl.setPropertyValue("PropAnyA",value);
ret= cl.getPropertyValue("PropAnyA");
r[i++]= ret instanceof Any && util.anyEquals(value, ret);
@@ -462,7 +462,7 @@ public class PropertySet_Test
cl.setPropertyValue("PropDoubleClass",value);
ret= cl.getPropertyValue("PropDoubleClass");
r[i++]= ret instanceof Double && util.anyEquals(value, ret);
- value= new Any(new Type(String.class), new String("string"));
+ value= new Any(new Type(String.class), "string");