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
This commit is contained in:
Stephen Colebourne 2006-12-29 17:16:37 +00:00
parent f40b71e33d
commit 37b2a3f215
1 changed files with 3 additions and 3 deletions

View File

@ -19,6 +19,8 @@ package org.apache.commons.lang.mutable;
import java.io.Serializable;
import org.apache.commons.lang.BooleanUtils;
/**
* A mutable <code>boolean</code> 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);
}
/**