groovy-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pa...@apache.org
Subject [groovy] 19/20: Fix typo
Date Mon, 08 Apr 2019 12:59:11 GMT
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 59630bdb8dd01aa1a9945db13f9dc93ad1247ab0
Author: Daniel Sun <sunlan@apache.org>
AuthorDate: Wed Mar 27 00:51:10 2019 +0800

    Fix typo
---
 ...tionInterfaceWriter.java => AbstractFunctionalInterfaceWriter.java} | 3 ++-
 .../org/codehaus/groovy/classgen/asm/sc/StaticTypesLambdaWriter.java   | 2 +-
 .../classgen/asm/sc/StaticTypesMethodReferenceExpressionWriter.java    | 2 +-
 3 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/src/main/java/org/codehaus/groovy/classgen/asm/sc/AbstractFunctionInterfaceWriter.java
b/src/main/java/org/codehaus/groovy/classgen/asm/sc/AbstractFunctionalInterfaceWriter.java
similarity index 96%
rename from src/main/java/org/codehaus/groovy/classgen/asm/sc/AbstractFunctionInterfaceWriter.java
rename to src/main/java/org/codehaus/groovy/classgen/asm/sc/AbstractFunctionalInterfaceWriter.java
index dea1d02..fe03ad7 100644
--- a/src/main/java/org/codehaus/groovy/classgen/asm/sc/AbstractFunctionInterfaceWriter.java
+++ b/src/main/java/org/codehaus/groovy/classgen/asm/sc/AbstractFunctionalInterfaceWriter.java
@@ -36,9 +36,10 @@ import static org.codehaus.groovy.transform.stc.StaticTypesMarker.INFERRED_FUNCT
 import static org.codehaus.groovy.transform.stc.StaticTypesMarker.PARAMETER_TYPE;
 
 /**
+ * Represents functional interface writer which contains some common methods to complete
generating bytecode
  * @since 3.0.0
  */
-public interface AbstractFunctionInterfaceWriter {
+public interface AbstractFunctionalInterfaceWriter {
     String ORIGINAL_PARAMETERS_WITH_EXACT_TYPE = "__ORIGINAL_PARAMETERS_WITH_EXACT_TYPE";
 
     default ClassNode getFunctionalInterfaceType(Expression expression) {
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 af3e631..521bc2d 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
@@ -64,7 +64,7 @@ import static org.objectweb.asm.Opcodes.NEW;
 /**
  * Writer responsible for generating lambda classes in statically compiled mode.
  */
-public class StaticTypesLambdaWriter extends LambdaWriter implements AbstractFunctionInterfaceWriter
{
+public class StaticTypesLambdaWriter extends LambdaWriter implements AbstractFunctionalInterfaceWriter
{
     private static final String DO_CALL = "doCall";
     private static final String LAMBDA_SHARED_VARIABLES = "__LAMBDA_SHARED_VARIABLES";
     private static final String ENCLOSING_THIS = "__enclosing_this";
diff --git a/src/main/java/org/codehaus/groovy/classgen/asm/sc/StaticTypesMethodReferenceExpressionWriter.java
b/src/main/java/org/codehaus/groovy/classgen/asm/sc/StaticTypesMethodReferenceExpressionWriter.java
index 7e1275d..ab0694a 100644
--- a/src/main/java/org/codehaus/groovy/classgen/asm/sc/StaticTypesMethodReferenceExpressionWriter.java
+++ b/src/main/java/org/codehaus/groovy/classgen/asm/sc/StaticTypesMethodReferenceExpressionWriter.java
@@ -54,7 +54,7 @@ import static org.codehaus.groovy.transform.stc.StaticTypesMarker.CLOSURE_ARGUME
  * Writer responsible for generating method reference in statically compiled mode.
  * @since 3.0.0
  */
-public class StaticTypesMethodReferenceExpressionWriter extends MethodReferenceExpressionWriter
implements AbstractFunctionInterfaceWriter {
+public class StaticTypesMethodReferenceExpressionWriter extends MethodReferenceExpressionWriter
implements AbstractFunctionalInterfaceWriter {
     private static final String MR_EXPR_INSTANCE = "__MR_EXPR_INSTANCE";
 
     public StaticTypesMethodReferenceExpressionWriter(WriterController controller) {


Mime
View raw message