diff options
author | Noel Grandin <noel@peralex.com> | 2014-08-12 15:12:27 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2014-08-19 14:57:18 +0200 |
commit | 0764292c5dcb7daa62e9adeb1ac9af1dbe14066f (patch) | |
tree | 17a4e9f2393d23aaba1e68bbc944aa8e18b9e2f6 /comphelper | |
parent | 8a2c6c29af41cd7a62f37861fb0d4e81a857bb45 (diff) |
java: use 'Short.valueOf' instead of 'new Short'
Change-Id: Icef19ef61ee0af2dd3bda527263934006271f219
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 9ff558a44b2c..a08c2c8855eb 100644 --- a/comphelper/qa/complex/comphelper/Map.java +++ b/comphelper/qa/complex/comphelper/Map.java @@ -235,7 +235,7 @@ public class Map /* extends complexlib.ComplexTestCase */ switch ( _pos ) { case 0: someValue = Boolean.FALSE; break; - case 1: someValue = new Short( (short)0 ); break; + case 1: someValue = Short.valueOf( (short)0 ); break; case 2: someValue = Integer.valueOf( 0 ); break; case 3: someValue = Long.valueOf( 0 ); break; case 4: someValue = UnoRuntime.queryInterface( XInterface.class, new DummyInterface() ); break; |