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 /comphelper | |
parent | java: use Boolean.valueOf instead of instantiating Boolean objects (diff) | |
download | core-ff0ad0493ee1729c726587f667761b04101d774c.tar.gz core-ff0ad0493ee1729c726587f667761b04101d774c.zip |
java: use 'Integer.valueOf' instead of 'new Integer'
Change-Id: Ia8befb8d69914ce971174fc5f2ffc0e2f506a940
Diffstat (limited to 'comphelper')
-rw-r--r-- | comphelper/qa/complex/comphelper/Map.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/comphelper/qa/complex/comphelper/Map.java b/comphelper/qa/complex/comphelper/Map.java index 6d622a7dfb1e..a615c8f86323 100644 --- a/comphelper/qa/complex/comphelper/Map.java +++ b/comphelper/qa/complex/comphelper/Map.java @@ -236,7 +236,7 @@ public class Map /* extends complexlib.ComplexTestCase */ { case 0: someValue = Boolean.FALSE; break; case 1: someValue = new Short( (short)0 ); break; - case 2: someValue = new Integer( 0 ); break; + case 2: someValue = Integer.valueOf( 0 ); break; case 3: someValue = new Long( 0 ); break; case 4: someValue = UnoRuntime.queryInterface( XInterface.class, new DummyInterface() ); break; case 5: someValue = UnoRuntime.queryInterface( XSet.class, new DummySet() ); break; |