groovy-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sun...@apache.org
Subject [groovy] 02/03: Trivial refactoring: adjust the return type
Date Sat, 21 Dec 2019 13:56:20 GMT
This is an automated email from the ASF dual-hosted git repository.

sunlan pushed a commit to branch GROOVY_3_0_X
in repository https://gitbox.apache.org/repos/asf/groovy.git

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

    Trivial refactoring: adjust the return type
    
    (cherry picked from commit cd3f874ed6cd801944c47fc2b1c0560c9971665b)
---
 .../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) {


Mime
View raw message