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:
parent
4afe714859
commit
5f0e40893d
|
@ -3463,7 +3463,7 @@ public class ArrayUtils {
|
||||||
* (index < 0 || index > array.length).
|
* (index < 0 || index > array.length).
|
||||||
*/
|
*/
|
||||||
public static boolean[] add(boolean[] array, int index, boolean element) {
|
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 );
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue