From be1bb7b1ccee28be616b89cc95e97d656e78bbe3 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Tue, 12 Aug 2014 14:00:54 +0200 Subject: java: use Boolean.valueOf instead of instantiating Boolean objects Change-Id: Ie41d6b0170a035a694dd270c311a137fd1810e74 --- comphelper/qa/complex/comphelper/Map.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'comphelper/qa') diff --git a/comphelper/qa/complex/comphelper/Map.java b/comphelper/qa/complex/comphelper/Map.java index 062179223823..6d622a7dfb1e 100644 --- a/comphelper/qa/complex/comphelper/Map.java +++ b/comphelper/qa/complex/comphelper/Map.java @@ -234,7 +234,7 @@ public class Map /* extends complexlib.ComplexTestCase */ Object someValue = null; switch ( _pos ) { - case 0: someValue = new Boolean( false ); break; + case 0: someValue = Boolean.FALSE; break; case 1: someValue = new Short( (short)0 ); break; case 2: someValue = new Integer( 0 ); break; case 3: someValue = new Long( 0 ); break; -- cgit