From b57c699e69b3801684cd5faf7a3f14c552e5cb92 Mon Sep 17 00:00:00 2001 From: Henri Yandell Date: Mon, 25 Dec 2006 18:57:37 +0000 Subject: [PATCH] Rolling back r489734 - Boolean.valueOf(boolean) only available from JDK 1.4 onwards git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@490161 13f79535-47bb-0310-9956-ffa450edef68 --- src/java/org/apache/commons/lang/mutable/MutableBoolean.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/java/org/apache/commons/lang/mutable/MutableBoolean.java b/src/java/org/apache/commons/lang/mutable/MutableBoolean.java index adda36974..1c47e4ca0 100644 --- a/src/java/org/apache/commons/lang/mutable/MutableBoolean.java +++ b/src/java/org/apache/commons/lang/mutable/MutableBoolean.java @@ -121,7 +121,9 @@ public class MutableBoolean implements Mutable, Serializable, Comparable { * @return the value as a Boolean */ public Object getValue() { - return Boolean.valueOf(this.value); + return new Boolean(this.value); +// TODO: JDK 1.4+ +// return Boolean.valueOf(this.value); } /**