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/11/03 13:39:08 UTC
[groovy] 02/06: Minor refactoring: Anonymous type can be replaced
with method reference
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 <su...@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;