groovy-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sun...@apache.org
Subject [groovy] 02/06: Minor refactoring: Anonymous type can be replaced with method reference
Date Sun, 03 Nov 2019 13:39:08 GMT
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

commit caff79f40a4d92e3b08cb3a02ebd1d7ffc8528a0
Author: Daniel Sun <sunlan@apache.org>
AuthorDate: Sun Nov 3 21:21:21 2019 +0800

    Minor refactoring: Anonymous type can be replaced with method reference
---
 .../org/codehaus/groovy/classgen/asm/sc/StaticCompilationMopWriter.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/main/java/org/codehaus/groovy/classgen/asm/sc/StaticCompilationMopWriter.java
b/src/main/java/org/codehaus/groovy/classgen/asm/sc/StaticCompilationMopWriter.java
index 781ebe1..a509c8b 100644
--- a/src/main/java/org/codehaus/groovy/classgen/asm/sc/StaticCompilationMopWriter.java
+++ b/src/main/java/org/codehaus/groovy/classgen/asm/sc/StaticCompilationMopWriter.java
@@ -35,7 +35,7 @@ import java.util.LinkedList;
  */
 public class StaticCompilationMopWriter extends MopWriter {
 
-    public static final MopWriter.Factory FACTORY = controller -> new StaticCompilationMopWriter(controller);
+    public static final MopWriter.Factory FACTORY = StaticCompilationMopWriter::new;
 
     private final StaticTypesWriterController controller;
 


Mime
View raw message