groovy-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sun...@apache.org
Subject [groovy] 02/04: Trivial refactoring: use stream instead of parallel stream
Date Mon, 21 Oct 2019 02:18:45 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 dc92cc88b3eaf880d49696de93dcb7bd005befcc
Author: Daniel Sun <sunlan@apache.org>
AuthorDate: Sat Oct 19 03:12:31 2019 +0800

    Trivial refactoring: use stream instead of parallel stream
    
    (cherry picked from commit 11e3040a597ac45ece9f94a53616fca38ed8f9ee)
---
 src/main/java/org/codehaus/groovy/tools/javac/JavaStubGenerator.java | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/src/main/java/org/codehaus/groovy/tools/javac/JavaStubGenerator.java b/src/main/java/org/codehaus/groovy/tools/javac/JavaStubGenerator.java
index 1d286a5..3fec399 100644
--- a/src/main/java/org/codehaus/groovy/tools/javac/JavaStubGenerator.java
+++ b/src/main/java/org/codehaus/groovy/tools/javac/JavaStubGenerator.java
@@ -56,7 +56,6 @@ import org.objectweb.asm.Opcodes;
 
 import javax.tools.FileObject;
 import javax.tools.JavaFileObject;
-
 import java.io.BufferedOutputStream;
 import java.io.File;
 import java.io.FileNotFoundException;
@@ -1040,7 +1039,7 @@ public class JavaStubGenerator {
     }
 
     public void clean() {
-        javaStubCompilationUnitSet.parallelStream().peek(FileObject::delete);
+        javaStubCompilationUnitSet.stream().peek(FileObject::delete);
         javaStubCompilationUnitSet.clear();
     }
 


Mime
View raw message