From 8ffdb2df2e7e89effe24e5dc2704d1b58670810e Mon Sep 17 00:00:00 2001 From: Matthew Jason Benson Date: Sun, 17 Jul 2011 01:44:50 +0000 Subject: [PATCH] ws git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1147513 13f79535-47bb-0310-9956-ffa450edef68 --- .../java/org/apache/commons/lang3/BooleanUtils.java | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/main/java/org/apache/commons/lang3/BooleanUtils.java b/src/main/java/org/apache/commons/lang3/BooleanUtils.java index c08e5c9c1..d16c11374 100644 --- a/src/main/java/org/apache/commons/lang3/BooleanUtils.java +++ b/src/main/java/org/apache/commons/lang3/BooleanUtils.java @@ -969,7 +969,7 @@ public class BooleanUtils { } return false; } - + /** *

Performs an or on an array of Booleans.

* @@ -1004,7 +1004,7 @@ public class BooleanUtils { throw new IllegalArgumentException("The array must not contain any null elements"); } } - + /** *

Performs an xor on a set of booleans.

* @@ -1030,7 +1030,7 @@ public class BooleanUtils { if (array.length == 0) { throw new IllegalArgumentException("Array is empty"); } - + // Loops through array, comparing each item int trueCount = 0; for (boolean element : array) { @@ -1044,11 +1044,11 @@ public class BooleanUtils { } } } - + // Returns true if there was exactly 1 true item return trueCount == 1; } - + /** *

Performs an xor on an array of Booleans.

* @@ -1078,5 +1078,5 @@ public class BooleanUtils { throw new IllegalArgumentException("The array must not contain any null elements"); } } - + }