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:43:47 UTC

[groovy] branch danielsun/install-graphviz created (now d8015a3)

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.


      at d8015a3  Workaround javadoc bug

This branch includes the following new commits:

     new 20ced65  Install graphviz
     new d8015a3  Workaround javadoc bug

The 2 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.


[groovy] 01/02: Install graphviz

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 20ced65df5c5aa77be18e0234f3fa3b6e30adf46
Author: Daniel Sun <su...@apache.org>
AuthorDate: Sun Jun 13 14:29:05 2021 +0800

    Install graphviz
---
 .github/workflows/gradle-snapshot-distribution.yml | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/.github/workflows/gradle-snapshot-distribution.yml b/.github/workflows/gradle-snapshot-distribution.yml
index da967b2..14eab42 100644
--- a/.github/workflows/gradle-snapshot-distribution.yml
+++ b/.github/workflows/gradle-snapshot-distribution.yml
@@ -31,6 +31,8 @@ jobs:
         uses: actions/setup-java@v1
         with:
           java-version: ${{ matrix.java }}
+      - name: Install graphviz
+        run: sudo apt-get install -y graphviz
       - name: Build and package
         run: ./gradlew clean dist --no-build-cache --no-scan --refresh-dependencies
         timeout-minutes: 60

[groovy] 02/02: 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 d8015a3b8d31fdc6f04231a5363952bda3adf28a
Author: Daniel Sun <su...@apache.org>
AuthorDate: Sun Jun 13 14:43:14 2021 +0800

    Workaround javadoc bug
---
 .../provider/collection/runtime/QueryableHelper.groovy   | 16 ++++++----------
 1 file changed, 6 insertions(+), 10 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..c6eb594 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
@@ -128,16 +127,13 @@ class QueryableHelper {
 
     private static class ThreadPoolHolder {
         static final ExecutorService THREAD_POOL
+        static int seq;
         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
-                }
+            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() {}