[COLLECTIONS-691] Use boolean operator for boolean result

Project: http://git-wip-us.apache.org/repos/asf/commons-collections/repo
Commit: 
http://git-wip-us.apache.org/repos/asf/commons-collections/commit/9a6e2523
Tree: http://git-wip-us.apache.org/repos/asf/commons-collections/tree/9a6e2523
Diff: http://git-wip-us.apache.org/repos/asf/commons-collections/diff/9a6e2523

Branch: refs/heads/master
Commit: 9a6e25230eccfa131d40eefbc4f48a13ac31d640
Parents: 4bcd8c1
Author: Eitan Adler <li...@eitanadler.com>
Authored: Mon Jul 23 00:34:21 2018 -0700
Committer: Bruno P. Kinoshita <ki...@apache.org>
Committed: Wed Jul 25 21:23:50 2018 +1200

----------------------------------------------------------------------
 src/main/java/org/apache/commons/collections4/list/GrowthList.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/commons-collections/blob/9a6e2523/src/main/java/org/apache/commons/collections4/list/GrowthList.java
----------------------------------------------------------------------
diff --git a/src/main/java/org/apache/commons/collections4/list/GrowthList.java 
b/src/main/java/org/apache/commons/collections4/list/GrowthList.java
index b81802e..ca329f9 100644
--- a/src/main/java/org/apache/commons/collections4/list/GrowthList.java
+++ b/src/main/java/org/apache/commons/collections4/list/GrowthList.java
@@ -153,7 +153,7 @@ public class GrowthList<E> extends 
AbstractSerializableListDecorator<E> {
             decorated().addAll(Collections.<E>nCopies(index - size, null));
             result = true;
         }
-        return decorated().addAll(index, coll) | result;
+        return decorated().addAll(index, coll) || result;
     }
 
     //-----------------------------------------------------------------------

Reply via email to