summaryrefslogtreecommitdiff
path: root/jurt
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2014-08-12 14:00:54 +0200
committerNoel Grandin <noel@peralex.com>2014-08-19 14:57:16 +0200
commitbe1bb7b1ccee28be616b89cc95e97d656e78bbe3 (patch)
treed67d16a68d1469b5096a27c743c4b0326a0c0ebe /jurt
parent56ef5533fc1bce2134721ae64d4d6c18a3526a7a (diff)
java: use Boolean.valueOf instead of instantiating Boolean objects
Change-Id: Ie41d6b0170a035a694dd270c311a137fd1810e74
Diffstat (limited to 'jurt')
-rw-r--r--jurt/test/com/sun/star/lib/uno/protocols/urp/Marshaling_Test.java2
-rw-r--r--jurt/test/com/sun/star/uno/AnyConverter_Test.java2
2 files changed, 2 insertions, 2 deletions
diff --git a/jurt/test/com/sun/star/lib/uno/protocols/urp/Marshaling_Test.java b/jurt/test/com/sun/star/lib/uno/protocols/urp/Marshaling_Test.java
index a8290af77324..390c775a7a34 100644
--- a/jurt/test/com/sun/star/lib/uno/protocols/urp/Marshaling_Test.java
+++ b/jurt/test/com/sun/star/lib/uno/protocols/urp/Marshaling_Test.java
@@ -43,7 +43,7 @@ public final class Marshaling_Test {
Object data[] = new Object[] {
new com.sun.star.uno.RuntimeException("testRuntimeException"),
new com.sun.star.uno.Exception("testException"),
- new Boolean(true),
+ Boolean.TRUE,
new Byte((byte)47),
new Character('k'),
new Double(0.12345),
diff --git a/jurt/test/com/sun/star/uno/AnyConverter_Test.java b/jurt/test/com/sun/star/uno/AnyConverter_Test.java
index b9eee47ccc8f..c4c93261d3f8 100644
--- a/jurt/test/com/sun/star/uno/AnyConverter_Test.java
+++ b/jurt/test/com/sun/star/uno/AnyConverter_Test.java
@@ -37,7 +37,7 @@ public final class AnyConverter_Test {
Any anyVoid;
Any anyXTypeProvider;
- Boolean aBool= new Boolean(true);
+ Boolean aBool= Boolean.TRUE;
Character aChar= new Character('A');
Byte aByte= new Byte((byte) 111);
Short aShort= new Short((short) 11111);