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 2022/08/24 05:40:44 UTC

[groovy] branch master updated: minor refactor - no need to funnel through InvokerHelper here

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


The following commit(s) were added to refs/heads/master by this push:
     new 87b4109418 minor refactor - no need to funnel through InvokerHelper here
87b4109418 is described below

commit 87b4109418830ab81d931ae2c27dd0049eeb0e7b
Author: Paul King <pa...@asert.com.au>
AuthorDate: Wed Aug 24 15:40:06 2022 +1000

    minor refactor - no need to funnel through InvokerHelper here
---
 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 4029823165..8af9eb325d 100644
--- a/src/main/java/org/codehaus/groovy/runtime/DefaultGroovyMethods.java
+++ b/src/main/java/org/codehaus/groovy/runtime/DefaultGroovyMethods.java
@@ -7794,7 +7794,7 @@ public class DefaultGroovyMethods extends DefaultGroovyMethodsSupport {
         List<T> answer = new ArrayList<>(indices.size());
         for (Object value : indices) {
             if (value instanceof Collection) {
-                answer.addAll((List<T>)InvokerHelper.invokeMethod(self, "getAt", value));
+                answer.addAll(getAt(self, (Collection) value));
             } else {
                 int idx = DefaultTypeTransformation.intUnbox(value);
                 answer.add(getAt(self, idx));