Fix PMD warning: Avoid instantiating Boolean objects; you can usually invoke Boolean.TRUE instead.

git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@230715 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Gary D. Gregory 2005-08-08 00:05:21 +00:00
parent 4afe714859
commit 5f0e40893d
1 changed files with 1 additions and 1 deletions

View File

@ -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 );
}
/**