You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@groovy.apache.org by su...@apache.org on 2019/12/21 11:13:58 UTC

[groovy] branch master updated: Trivial refactoring: adjust the return type

This is an automated email from the ASF dual-hosted git repository.

sunlan 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 cd3f874  Trivial refactoring: adjust the return type
cd3f874 is described below

commit cd3f874ed6cd801944c47fc2b1c0560c9971665b
Author: Daniel Sun <su...@apache.org>
AuthorDate: Sat Dec 21 19:13:41 2019 +0800

    Trivial refactoring: adjust the return type
---
 .../org/codehaus/groovy/classgen/asm/sc/StaticTypesLambdaWriter.java  | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/src/main/java/org/codehaus/groovy/classgen/asm/sc/StaticTypesLambdaWriter.java b/src/main/java/org/codehaus/groovy/classgen/asm/sc/StaticTypesLambdaWriter.java
index b582e2f..fc96361 100644
--- a/src/main/java/org/codehaus/groovy/classgen/asm/sc/StaticTypesLambdaWriter.java
+++ b/src/main/java/org/codehaus/groovy/classgen/asm/sc/StaticTypesLambdaWriter.java
@@ -200,7 +200,7 @@ public class StaticTypesLambdaWriter extends LambdaWriter implements AbstractFun
         operandStack.replace(CLOSURE_TYPE, lambdaClassConstructorParameters.length);
     }
 
-    private Parameter[] loadSharedVariables(final LambdaExpression expression) {
+    private void loadSharedVariables(final LambdaExpression expression) {
         Parameter[] lambdaSharedVariableParameters = expression.getNodeMetaData(LAMBDA_SHARED_VARIABLES);
 
         for (Parameter parameter : lambdaSharedVariableParameters) {
@@ -209,8 +209,6 @@ public class StaticTypesLambdaWriter extends LambdaWriter implements AbstractFun
                 parameter.setNodeMetaData(UseExistingReference.class, Boolean.TRUE);
             }
         }
-
-        return lambdaSharedVariableParameters;
     }
 
     private String createAbstractMethodDesc(final ClassNode functionalInterface, final ClassNode lambdaClass) {