summaryrefslogtreecommitdiff
path: root/bridges
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2014-08-12 15:13:30 +0200
committerNoel Grandin <noel@peralex.com>2014-08-19 14:57:18 +0200
commitc552aac9f889b094caaa35c3fd9d12fe7c3fc73c (patch)
treeb6b583a6fe44817d37d3b9963ed973b67d16ed4f /bridges
parent0764292c5dcb7daa62e9adeb1ac9af1dbe14066f (diff)
java: use 'Byte.valueOf' instead of 'new Byte'
Change-Id: Ia99765a6226317ee41ffb02a1b0dd7e6fd944a90
Diffstat (limited to 'bridges')
-rw-r--r--bridges/test/java_remote/PolyStructTest.java10
-rw-r--r--bridges/test/java_uno/any/TestAny.java12
2 files changed, 11 insertions, 11 deletions
diff --git a/bridges/test/java_remote/PolyStructTest.java b/bridges/test/java_remote/PolyStructTest.java
index bfa0aa7fe6fc..bf4fdf57df83 100644
--- a/bridges/test/java_remote/PolyStructTest.java
+++ b/bridges/test/java_remote/PolyStructTest.java
@@ -58,16 +58,16 @@ public final class PolyStructTest extends ComplexTestCase {
t.transportBoolean(new TestPolyStruct(Boolean.TRUE)).member);
assertEquals(
- new Byte((byte) 0),
+ Byte.valueOf((byte) 0),
t.transportByte(new TestPolyStruct()).member);
assertEquals(
- new Byte(Byte.MIN_VALUE),
+ Byte.valueOf(Byte.MIN_VALUE),
t.transportByte(
- new TestPolyStruct(new Byte(Byte.MIN_VALUE))).member);
+ new TestPolyStruct(Byte.valueOf(Byte.MIN_VALUE))).member);
assertEquals(
- new Byte(Byte.MAX_VALUE),
+ Byte.valueOf(Byte.MAX_VALUE),
t.transportByte(
- new TestPolyStruct(new Byte(Byte.MAX_VALUE))).member);
+ new TestPolyStruct(Byte.valueOf(Byte.MAX_VALUE))).member);
assertEquals(
Short.valueOf((short) 0),
diff --git a/bridges/test/java_uno/any/TestAny.java b/bridges/test/java_uno/any/TestAny.java
index 861fc17623c5..1e7cf2ec1e4d 100644
--- a/bridges/test/java_uno/any/TestAny.java
+++ b/bridges/test/java_uno/any/TestAny.java
@@ -123,20 +123,20 @@ final class TestAny {
new CompareUnboxed());
// BYTE:
- success &= testMapAny(transport, new Byte((byte) -128),
+ success &= testMapAny(transport, Byte.valueOf((byte) -128),
new CompareBoxed());
- success &= testMapAny(transport, new Byte((byte) 0),
+ success &= testMapAny(transport, Byte.valueOf((byte) 0),
new CompareBoxed());
- success &= testMapAny(transport, new Byte((byte) 127),
+ success &= testMapAny(transport, Byte.valueOf((byte) 127),
new CompareBoxed());
success &= testMapAny(transport,
- new Any(Type.BYTE, new Byte((byte) -128)),
+ new Any(Type.BYTE, Byte.valueOf((byte) -128)),
new CompareUnboxed());
success &= testMapAny(transport,
- new Any(Type.BYTE, new Byte((byte) 0)),
+ new Any(Type.BYTE, Byte.valueOf((byte) 0)),
new CompareUnboxed());
success &= testMapAny(transport,
- new Any(Type.BYTE, new Byte((byte) 127)),
+ new Any(Type.BYTE, Byte.valueOf((byte) 127)),
new CompareUnboxed());
// SHORT: