You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@groovy.apache.org by pa...@apache.org on 2021/04/12 06:04:12 UTC
[groovy] 06/26: GROOVY-9649: Fix subListBorders call in IntRange
This is an automated email from the ASF dual-hosted git repository.
paulk pushed a commit to branch groovy9649
in repository https://gitbox.apache.org/repos/asf/groovy.git
commit e9a5385b22bbd3b92affd2b78c36154ed8d2b564
Author: Eerik Voimanen <ee...@tuni.fi>
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) {