From 37b2a3f215f6ae19dee7a836e0c6b98bb17c5350 Mon Sep 17 00:00:00 2001 From: Stephen Colebourne Date: Fri, 29 Dec 2006 17:16:37 +0000 Subject: [PATCH] Avoid new Boolean() via BooleanUtils git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@491052 13f79535-47bb-0310-9956-ffa450edef68 --- .../org/apache/commons/lang/mutable/MutableBoolean.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/java/org/apache/commons/lang/mutable/MutableBoolean.java b/src/java/org/apache/commons/lang/mutable/MutableBoolean.java index 1c47e4ca0..6c92ee1e2 100644 --- a/src/java/org/apache/commons/lang/mutable/MutableBoolean.java +++ b/src/java/org/apache/commons/lang/mutable/MutableBoolean.java @@ -19,6 +19,8 @@ package org.apache.commons.lang.mutable; import java.io.Serializable; +import org.apache.commons.lang.BooleanUtils; + /** * A mutable boolean wrapper. * @@ -121,9 +123,7 @@ public class MutableBoolean implements Mutable, Serializable, Comparable { * @return the value as a Boolean */ public Object getValue() { - return new Boolean(this.value); -// TODO: JDK 1.4+ -// return Boolean.valueOf(this.value); + return BooleanUtils.toBooleanObject(this.value); } /**