You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@groovy.apache.org by pa...@apache.org on 2022/09/15 06:13:08 UTC

[groovy] branch GROOVY_3_0_X updated (c3454a04b9 -> cc794435ae)

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

paulk pushed a change to branch GROOVY_3_0_X
in repository https://gitbox.apache.org/repos/asf/groovy.git


    from c3454a04b9 GROOVY-10120: STC: synthetic variant (bridge method) lacks generics info
     new 6ea5cd0380 fix javadoc warning
     new cc794435ae use diamond operator

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.


Summary of changes:
 .../src/main/java/org/codehaus/groovy/runtime/NioGroovyMethods.java | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)


[groovy] 02/02: use diamond operator

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

paulk pushed a commit to branch GROOVY_3_0_X
in repository https://gitbox.apache.org/repos/asf/groovy.git

commit cc794435ae33b9129e20b7548813853746b03298
Author: Paul King <pa...@asert.com.au>
AuthorDate: Thu Sep 15 16:12:54 2022 +1000

    use diamond operator
---
 .../src/main/java/org/codehaus/groovy/runtime/NioGroovyMethods.java   | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/subprojects/groovy-nio/src/main/java/org/codehaus/groovy/runtime/NioGroovyMethods.java b/subprojects/groovy-nio/src/main/java/org/codehaus/groovy/runtime/NioGroovyMethods.java
index f039550481..0c4a110272 100644
--- a/subprojects/groovy-nio/src/main/java/org/codehaus/groovy/runtime/NioGroovyMethods.java
+++ b/subprojects/groovy-nio/src/main/java/org/codehaus/groovy/runtime/NioGroovyMethods.java
@@ -1121,7 +1121,7 @@ public class NioGroovyMethods extends DefaultGroovyMethodsSupport {
     @Deprecated
     public static void traverse(final Path self, @ClosureParams(value = SimpleType.class, options = "java.nio.file.Path") final Closure closure)
             throws IOException {
-        traverse(self, new HashMap<String, Object>(), closure);
+        traverse(self, new HashMap<>(), closure);
     }
 
     /**
@@ -1158,7 +1158,7 @@ public class NioGroovyMethods extends DefaultGroovyMethodsSupport {
 
         try (DirectoryStream<Path> stream = Files.newDirectoryStream(self)) {
             final Iterator<Path> itr = stream.iterator();
-            List<Path> files = new LinkedList<Path>();
+            List<Path> files = new LinkedList<>();
             while (itr.hasNext()) {
                 files.add(itr.next());
             }


[groovy] 01/02: fix javadoc warning

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

paulk pushed a commit to branch GROOVY_3_0_X
in repository https://gitbox.apache.org/repos/asf/groovy.git

commit 6ea5cd0380c6d43c4214dd37df2b6f265ffa3393
Author: Paul King <pa...@asert.com.au>
AuthorDate: Thu Sep 15 16:12:26 2022 +1000

    fix javadoc warning
---
 .../src/main/java/org/codehaus/groovy/runtime/NioGroovyMethods.java     | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/subprojects/groovy-nio/src/main/java/org/codehaus/groovy/runtime/NioGroovyMethods.java b/subprojects/groovy-nio/src/main/java/org/codehaus/groovy/runtime/NioGroovyMethods.java
index 52e7b45254..f039550481 100644
--- a/subprojects/groovy-nio/src/main/java/org/codehaus/groovy/runtime/NioGroovyMethods.java
+++ b/subprojects/groovy-nio/src/main/java/org/codehaus/groovy/runtime/NioGroovyMethods.java
@@ -1034,7 +1034,7 @@ public class NioGroovyMethods extends DefaultGroovyMethodsSupport {
      *                which can be used to control subsequent processing
      * @throws java.io.FileNotFoundException if the given directory does not exist
      * @throws IllegalArgumentException      if the provided Path object does not represent a directory or illegal filter combinations are supplied
-     * @see DefaultGroovyMethods#sort(java.util.Collection, groovy.lang.Closure)
+     * @see DefaultGroovyMethods#sort(java.lang.Iterable, groovy.lang.Closure)
      * @see groovy.io.FileVisitResult
      * @see groovy.io.FileType
      * @since 2.3.0