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 2021/06/13 06:59:15 UTC

[groovy] branch danielsun/install-graphviz updated (d8015a3 -> 0f6b00b)

This is an automated email from the ASF dual-hosted git repository.

sunlan pushed a change to branch danielsun/install-graphviz
in repository https://gitbox.apache.org/repos/asf/groovy.git.


 discard d8015a3  Workaround javadoc bug
     new 0f6b00b  Workaround javadoc bug

This update added new revisions after undoing existing revisions.
That is to say, some revisions that were in the old version of the
branch are not in the new version.  This situation occurs
when a user --force pushes a change and generates a repository
containing something like this:

 * -- * -- B -- O -- O -- O   (d8015a3)
            \
             N -- N -- N   refs/heads/danielsun/install-graphviz (0f6b00b)

You should already have received notification emails for all of the O
revisions, and so the following emails describe only the N revisions
from the common base, B.

Any revisions marked "omit" are not gone; other references still
refer to them.  Any revisions marked "discard" are gone forever.

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 .../provider/collection/runtime/QueryableHelper.groovy  | 17 +++++++----------
 1 file changed, 7 insertions(+), 10 deletions(-)

[groovy] 01/01: Workaround javadoc bug

Posted by su...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

sunlan pushed a commit to branch danielsun/install-graphviz
in repository https://gitbox.apache.org/repos/asf/groovy.git

commit 0f6b00bde8e5a38f728cfd848ab6538bea96fdbe
Author: Daniel Sun <su...@apache.org>
AuthorDate: Sun Jun 13 14:43:14 2021 +0800

    Workaround javadoc bug
---
 .../collection/runtime/QueryableHelper.groovy       | 21 +++++++--------------
 1 file changed, 7 insertions(+), 14 deletions(-)

diff --git a/subprojects/groovy-ginq/src/main/groovy/org/apache/groovy/ginq/provider/collection/runtime/QueryableHelper.groovy b/subprojects/groovy-ginq/src/main/groovy/org/apache/groovy/ginq/provider/collection/runtime/QueryableHelper.groovy
index 709549a..16940c6 100644
--- a/subprojects/groovy-ginq/src/main/groovy/org/apache/groovy/ginq/provider/collection/runtime/QueryableHelper.groovy
+++ b/subprojects/groovy-ginq/src/main/groovy/org/apache/groovy/ginq/provider/collection/runtime/QueryableHelper.groovy
@@ -23,7 +23,6 @@ import groovy.transform.CompileStatic
 import java.util.concurrent.CompletableFuture
 import java.util.concurrent.ExecutorService
 import java.util.concurrent.Executors
-import java.util.concurrent.ThreadFactory
 import java.util.concurrent.TimeUnit
 import java.util.function.Function
 import java.util.function.Supplier
@@ -127,19 +126,13 @@ class QueryableHelper {
     private QueryableHelper() {}
 
     private static class ThreadPoolHolder {
-        static final ExecutorService THREAD_POOL
-        static {
-            THREAD_POOL = Executors.newFixedThreadPool(Runtime.getRuntime().availableProcessors(), new ThreadFactory() {
-                private int seq
-                @Override
-                Thread newThread(Runnable r) {
-                    Thread t = new Thread(r)
-                    t.setName("ginq-thread-" + seq++)
-                    t.setDaemon(true)
-                    return t
-                }
-            })
-        }
+        static int seq
+        static final ExecutorService THREAD_POOL = Executors.newFixedThreadPool(Runtime.getRuntime().availableProcessors(), (Runnable r) -> {
+            Thread t = new Thread(r)
+            t.setName("ginq-thread-" + seq++)
+            t.setDaemon(true)
+            return t
+        })
         private ThreadPoolHolder() {}
     }
 }