From 9a6e25230eccfa131d40eefbc4f48a13ac31d640 Mon Sep 17 00:00:00 2001 From: Eitan Adler Date: Mon, 23 Jul 2018 00:34:21 -0700 Subject: [PATCH] [COLLECTIONS-691] Use boolean operator for boolean result --- .../java/org/apache/commons/collections4/list/GrowthList.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 b81802e0c..ca329f985 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 extends AbstractSerializableListDecorator { decorated().addAll(Collections.nCopies(index - size, null)); result = true; } - return decorated().addAll(index, coll) | result; + return decorated().addAll(index, coll) || result; } //-----------------------------------------------------------------------