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 2020/03/09 02:05:40 UTC
[groovy] 01/02: GROOVY-9450: fix missing reference to startIndex in
DefaultGroovyMethod#findIndexOf(Object self, int startIndex,
Closure condition) (closes #1184)
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 227fa161a775b8d750792685d2ff3193352c66e2
Author: zhao fan <35...@qq.com>
AuthorDate: Sun Mar 8 14:45:36 2020 +0800
GROOVY-9450: fix missing reference to startIndex in DefaultGroovyMethod#findIndexOf(Object self, int startIndex, Closure condition) (closes #1184)
Bug: can't use startIndex
---
src/main/java/org/codehaus/groovy/runtime/DefaultGroovyMethods.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/main/java/org/codehaus/groovy/runtime/DefaultGroovyMethods.java b/src/main/java/org/codehaus/groovy/runtime/DefaultGroovyMethods.java
index 29ccea2..c37df1d 100644
--- a/src/main/java/org/codehaus/groovy/runtime/DefaultGroovyMethods.java
+++ b/src/main/java/org/codehaus/groovy/runtime/DefaultGroovyMethods.java
@@ -17157,7 +17157,7 @@ public class DefaultGroovyMethods extends DefaultGroovyMethodsSupport {
* @since 1.5.0
*/
public static int findIndexOf(Object self, int startIndex, Closure condition) {
- return findIndexOf(InvokerHelper.asIterator(self), condition);
+ return findIndexOf(InvokerHelper.asIterator(self), startIndex, condition);
}
/**