diff --git a/src/java/org/apache/commons/lang/ArrayUtils.java b/src/java/org/apache/commons/lang/ArrayUtils.java index ba6043c46..2a5edee27 100644 --- a/src/java/org/apache/commons/lang/ArrayUtils.java +++ b/src/java/org/apache/commons/lang/ArrayUtils.java @@ -3463,7 +3463,7 @@ public class ArrayUtils { * (index < 0 || index > array.length). */ public static boolean[] add(boolean[] array, int index, boolean element) { - return (boolean[]) add( array, index, new Boolean(element), Boolean.TYPE ); + return (boolean[]) add( array, index, BooleanUtils.toBooleanObject(element), Boolean.TYPE ); } /**