diff options
author | Noel Grandin <noel@peralex.com> | 2014-08-12 15:09:06 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2014-08-19 14:57:17 +0200 |
commit | ff0ad0493ee1729c726587f667761b04101d774c (patch) | |
tree | 8c0f97e8740fbdb2ed0cdbfc5d99d82cae8f7df6 /codemaker | |
parent | be1bb7b1ccee28be616b89cc95e97d656e78bbe3 (diff) |
java: use 'Integer.valueOf' instead of 'new Integer'
Change-Id: Ia8befb8d69914ce971174fc5f2ffc0e2f506a940
Diffstat (limited to 'codemaker')
-rw-r--r-- | codemaker/test/javamaker/Test.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/codemaker/test/javamaker/Test.java b/codemaker/test/javamaker/Test.java index 8b506a2d80f5..cc95099ecf21 100644 --- a/codemaker/test/javamaker/Test.java +++ b/codemaker/test/javamaker/Test.java @@ -222,7 +222,7 @@ public final class Test extends ComplexTestCase { //TODO: Struct2 s = new Struct2( true, (byte) 1, (short) 2, (short) 3, 4, 5, 6L, 7L, 0.8f, 0.9, 'A', - "BCD", Type.UNSIGNED_HYPER, new Integer(22), Enum2.VALUE4, + "BCD", Type.UNSIGNED_HYPER, Integer.valueOf(22), Enum2.VALUE4, new Struct1(1), null, null, false, (byte) 0, (short) 0, (short) 0, 0, 0, 0L, 0L, 0.0f, 0.0, '\u0000', "", Type.VOID, Any.VOID, Enum2.VALUE0, new Struct1(), null, null, @@ -255,7 +255,7 @@ public final class Test extends ComplexTestCase { assure(s.p11 == 'A'); assure(s.p12.equals("BCD")); assure(s.p13.equals(Type.UNSIGNED_HYPER)); - assure(s.p14.equals(new Integer(22))); + assure(s.p14.equals(Integer.valueOf(22))); assure(s.p15 == Enum2.VALUE4); assure(s.p16.member1 == 1); assure(s.p17 == null); |