scolebourne 2003/07/31 15:30:07 Modified: lang/src/java/org/apache/commons/lang BooleanUtils.java Log: Emit correct exceptions Revision Changes Path 1.10 +4 -4 jakarta-commons/lang/src/java/org/apache/commons/lang/BooleanUtils.java Index: BooleanUtils.java =================================================================== RCS file: /home/cvs/jakarta-commons/lang/src/java/org/apache/commons/lang/BooleanUtils.java,v retrieving revision 1.9 retrieving revision 1.10 diff -u -r1.9 -r1.10 --- BooleanUtils.java 25 Jul 2003 23:06:58 -0000 1.9 +++ BooleanUtils.java 31 Jul 2003 22:30:07 -0000 1.10 @@ -620,13 +620,13 @@ * * @param array an array of <code>boolean<code>s * @return <code>true</code> if the xor is successful. - * @throws NullArgumentException if <code>array</code> is <code>null</code> + * @throws IllegalArgumentException if <code>array</code> is <code>null</code> * @throws IllegalArgumentException if <code>array</code> is empty. */ public static boolean xor(boolean[] array) { // Validates input if (array == null) { - throw new NullArgumentException("Array"); + throw new IllegalArgumentException("The Array must not be null"); } else if (array.length == 0) { throw new IllegalArgumentException("Array is empty"); } @@ -655,7 +655,7 @@ * @param array an array of <code>Boolean<code>s * @return <code>true</code> if the xor is successful. * @throws NullPointerException if <code>array</code> contains a <code>null</code> - * @throws NullArgumentException if <code>array</code> is <code>null</code> + * @throws IllegalArgumentException if <code>array</code> is <code>null</code> * @throws IllegalArgumentException if <code>array</code> is empty. */ public static Boolean xor(Boolean[] array) {
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]