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 /testtools/source | |
parent | be1bb7b1ccee28be616b89cc95e97d656e78bbe3 (diff) |
java: use 'Integer.valueOf' instead of 'new Integer'
Change-Id: Ia8befb8d69914ce971174fc5f2ffc0e2f506a940
Diffstat (limited to 'testtools/source')
-rw-r--r-- | testtools/source/servicetests/TestService.java | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/testtools/source/servicetests/TestService.java b/testtools/source/servicetests/TestService.java index 8d3c4c5203a5..a825f0df1cd9 100644 --- a/testtools/source/servicetests/TestService.java +++ b/testtools/source/servicetests/TestService.java @@ -87,7 +87,7 @@ public final class TestService implements XServiceInfo, XSingleComponentFactory } public void setProp6(int value) { - prop6 = new Integer(value); + prop6 = Integer.valueOf(value); } public int getProp7() @@ -96,7 +96,7 @@ public final class TestService implements XServiceInfo, XSingleComponentFactory } public void setProp7(int value) { - prop7 = new Integer(value); + prop7 = Integer.valueOf(value); } public int getProp8Long() { @@ -117,8 +117,8 @@ public final class TestService implements XServiceInfo, XSingleComponentFactory } private int prop1 = 1; - private Integer prop6 = new Integer(6); - private Integer prop7 = new Integer(7); + private Integer prop6 = Integer.valueOf(6); + private Integer prop7 = Integer.valueOf(7); private int prop8 = 8; } |