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 2023/01/26 11:45:01 UTC

[groovy] branch master updated (070d5018dd -> d2138ef0ba)

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

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


    from 070d5018dd Minor improvements to 'Differences with Java' documentation page (additional minor tweaks)
     new 79f6c7de06 update dependency metadata
     new d2138ef0ba partial revert of "add missing AGM min/max variants" to have a more complete offering as a PR

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:
 gradle/verification-metadata.xml                   | 16 ++++
 .../groovy/runtime/ArrayGroovyMethods.java         | 90 ----------------------
 2 files changed, 16 insertions(+), 90 deletions(-)


[groovy] 02/02: partial revert of "add missing AGM min/max variants" to have a more complete offering as a PR

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

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

commit d2138ef0ba76085c148632b464076130f446890c
Author: Paul King <pa...@asert.com.au>
AuthorDate: Thu Jan 26 21:44:50 2023 +1000

    partial revert of "add missing AGM min/max variants" to have a more complete offering as a PR
---
 .../groovy/runtime/ArrayGroovyMethods.java         | 90 ----------------------
 1 file changed, 90 deletions(-)

diff --git a/src/main/java/org/codehaus/groovy/runtime/ArrayGroovyMethods.java b/src/main/java/org/codehaus/groovy/runtime/ArrayGroovyMethods.java
index 2d04cbe724..a2afad86cd 100644
--- a/src/main/java/org/codehaus/groovy/runtime/ArrayGroovyMethods.java
+++ b/src/main/java/org/codehaus/groovy/runtime/ArrayGroovyMethods.java
@@ -3661,36 +3661,6 @@ public class ArrayGroovyMethods extends DefaultGroovyMethodsSupport {
         return answer;
     }
 
-    /**
-     * Selects the minimum value found from the int array
-     * using the closure to determine the correct ordering.
-     * <p>
-     * <pre class="groovyTestCase">
-     * int[] nums = [30, 45, 60, 90]
-     * assert 30 == nums.min{ Math.sin(Math.toRadians(it)) }
-     * assert 90 == nums.min{ Math.cos(Math.toRadians(it)) } // cos(90) == 0
-     * </pre>
-     * <p>
-     * If the closure has two parameters
-     * it is used like a traditional Comparator. I.e., it should compare
-     * its two parameters for order, returning a negative integer,
-     * zero, or a positive integer when the first parameter is less than,
-     * equal to, or greater than the second respectively. Otherwise,
-     * the Closure is assumed to take a single parameter and return a
-     * Comparable (typically an Integer) which is then used for
-     * further comparison.
-     *
-     * @param self    an int array
-     * @param closure a Closure used to determine the correct ordering
-     * @return the minimum value
-     * @see DefaultGroovyMethods#min(Iterator, groovy.lang.Closure)
-     * @since 5.0.0
-     */
-    @Incubating
-    public static int min(int[] self, @ClosureParams(FirstParam.Component.class) Closure<?> closure) {
-        return DefaultGroovyMethods.min(new IntArrayIterable(self), closure);
-    }
-
     /**
      * Adds min() method to long arrays.
      * <p/>
@@ -3715,36 +3685,6 @@ public class ArrayGroovyMethods extends DefaultGroovyMethodsSupport {
         return answer;
     }
 
-    /**
-     * Selects the minimum value found from the long array
-     * using the closure to determine the correct ordering.
-     * <p>
-     * <pre class="groovyTestCase">
-     * long[] nums = [-20L, 10L, 30L]
-     * assert -20L == nums.min{ a, b {@code ->} a {@code <=>} b }
-     * assert 10L == nums.min{ it.abs() }
-     * </pre>
-     * <p>
-     * If the closure has two parameters
-     * it is used like a traditional Comparator. I.e., it should compare
-     * its two parameters for order, returning a negative integer,
-     * zero, or a positive integer when the first parameter is less than,
-     * equal to, or greater than the second respectively. Otherwise,
-     * the Closure is assumed to take a single parameter and return a
-     * Comparable (typically an Integer) which is then used for
-     * further comparison.
-     *
-     * @param self    a long array
-     * @param closure a Closure used to determine the correct ordering
-     * @return the minimum value
-     * @see DefaultGroovyMethods#min(Iterator, groovy.lang.Closure)
-     * @since 5.0.0
-     */
-    @Incubating
-    public static long min(long[] self, @ClosureParams(FirstParam.Component.class) Closure<?> closure) {
-        return DefaultGroovyMethods.min(new LongArrayIterator(self), closure);
-    }
-
     /**
      * Adds min() method to double arrays.
      * <p/>
@@ -3769,36 +3709,6 @@ public class ArrayGroovyMethods extends DefaultGroovyMethodsSupport {
         return answer;
     }
 
-    /**
-     * Selects the minimum value found from the double array
-     * using the closure to determine the correct ordering.
-     * <p>
-     * <pre class="groovyTestCase">
-     * double[] nums = [-20.0d, 10.0d, 30.0d]
-     * assert -20.0d == nums.min{ a, b {@code ->} a {@code <=>} b }
-     * assert 10.0d == nums.min{ it.abs() }
-     * </pre>
-     * <p>
-     * If the closure has two parameters
-     * it is used like a traditional Comparator. I.e., it should compare
-     * its two parameters for order, returning a negative integer,
-     * zero, or a positive integer when the first parameter is less than,
-     * equal to, or greater than the second respectively. Otherwise,
-     * the Closure is assumed to take a single parameter and return a
-     * Comparable (typically an Integer) which is then used for
-     * further comparison.
-     *
-     * @param self    a double array
-     * @param closure a Closure used to determine the correct ordering
-     * @return the minimum value
-     * @see DefaultGroovyMethods#min(Iterator, groovy.lang.Closure)
-     * @since 5.0.0
-     */
-    @Incubating
-    public static double min(double[] self, @ClosureParams(FirstParam.Component.class) Closure<?> closure) {
-        return DefaultGroovyMethods.min(new DoubleArrayIterator(self), closure);
-    }
-
     //-------------------------------------------------------------------------
     // minus
     //-------------------------------------------------------------------------


[groovy] 01/02: update dependency metadata

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

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

commit 79f6c7de062b2bd27db70d241a56287b67f049fc
Author: Paul King <pa...@asert.com.au>
AuthorDate: Thu Jan 26 21:26:42 2023 +1000

    update dependency metadata
---
 gradle/verification-metadata.xml | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)

diff --git a/gradle/verification-metadata.xml b/gradle/verification-metadata.xml
index 3bc763e00c..4f6c79916a 100644
--- a/gradle/verification-metadata.xml
+++ b/gradle/verification-metadata.xml
@@ -65,6 +65,7 @@
             <trusting group="org.apache.httpcomponents"/>
             <trusting group="^org[.]apache[.]httpcomponents($|([.].*))" regex="true"/>
          </trusted-key>
+         <trusted-key id="0a123c1ed3f13a6a0140e166c71fb765cd9de313" group="org.apache.ant"/>
          <trusted-key id="0cc641c3a62453ab390066c4a41f13c999945293">
             <trusting group="commons-collections" name="commons-collections" version="3.2.2"/>
             <trusting group="commons-logging" name="commons-logging" version="1.2"/>
@@ -416,6 +417,11 @@
             <sha512 value="1ec82b14db51afff8b7bc011ffcc92382d02c8142e25eae96e76269ac8b4e81a4f849887ab6e7100884614db8f6c6152c87b50a81d581943dc4dc351570b1835" origin="Generated by Gradle because artifact wasn't signed"/>
          </artifact>
       </component>
+      <component group="me.champeau.jmh" name="jmh-gradle-plugin" version="0.6.8">
+         <artifact name="jmh-gradle-plugin-0.6.8.jar">
+            <pgp value="0191e61acbbe76323ac15c83b5ad94bdd6bdb924"/>
+         </artifact>
+      </component>
       <component group="me.sunlan" name="antlr4" version="4.11.1.4">
          <artifact name="antlr4-4.11.1.4.jar">
             <sha512 value="2e5a0f9b9862969e746241d1b7efc432747242b9a2879c99a6a381b5ed841becfc09ab97d3e0991e611561bc3dc37ce8d8382d7f8ade499577bd6188d5cd7e7e" origin="Generated by Gradle because a key couldn't be downloaded"/>
@@ -463,6 +469,11 @@
             <sha512 value="dfe1a3946e9381cc9b3619ba3149615dc63cb6790ccf0518d56242f4b74d0e6105dce24a40642bb8a79ab6ecdbe42eabc3ee51f752421dad5db9c894256bdf41" origin="Generated by Gradle because artifact wasn't signed"/>
          </artifact>
       </component>
+      <component group="net.jqwik" name="jqwik-api" version="1.7.2">
+         <artifact name="jqwik-api-1.7.2.jar">
+            <pgp value="aaaa9d3f580c7223dbd1ff425746ee07d997ddb6"/>
+         </artifact>
+      </component>
       <component group="net.sourceforge.cobertura" name="cobertura" version="1.9.4.1">
          <artifact name="cobertura-1.9.4.1.jar">
             <sha512 value="827e21e51ceec0ddf37814ee40c7ac0521652262e5b87ae6e7e0f054b041491fb6d97fcd14bf89286c9ae16f590d73b0afdae4fc5b4f4231ccc44a340948882b" origin="Generated by Gradle because artifact wasn't signed"/>
@@ -820,6 +831,11 @@
             <pgp value="2bcbdd0f23ea1cafcc11d4860374cf2e8dd1bdfd"/>
          </artifact>
       </component>
+      <component group="org.testng" name="testng" version="7.7.1">
+         <artifact name="testng-7.7.1.jar">
+            <pgp value="7cd52b5a8295137c88fb5748dddafa7674e54418"/>
+         </artifact>
+      </component>
       <component group="org.ysb33r.gradle" name="grolifant" version="0.16.1">
          <artifact name="grolifant-0.16.1.jar">
             <ignored-keys>