This is an automated email from the ASF dual-hosted git repository. paulk pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/groovy.git
commit 16d12fc6823f6502000738fa60b6b1589c55f939 Author: Eerik Voimanen <[email protected]> AuthorDate: Sat Apr 3 16:22:48 2021 +0300 GROOVY-9649: Fix subListBorders call in IntRange --- src/main/java/groovy/lang/IntRange.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/groovy/lang/IntRange.java b/src/main/java/groovy/lang/IntRange.java index f06f7a7..c11fd94 100644 --- a/src/main/java/groovy/lang/IntRange.java +++ b/src/main/java/groovy/lang/IntRange.java @@ -233,7 +233,7 @@ public class IntRange extends AbstractList<Integer> implements Range<Integer>, S if (inclusiveRight == null || inclusiveLeft == null) { throw new IllegalStateException("Should not call subListBorders on a non-inclusive aware IntRange"); } - return subListBorders(from, to, inclusiveRight, size); + return subListBorders(from, to, inclusiveLeft, inclusiveRight, size); } static RangeInfo subListBorders(int from, int to, boolean inclusiveRight, int size) {
