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/15 00:23:52 UTC
[groovy] branch master updated: mark Closure min variants as Incubating
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
The following commit(s) were added to refs/heads/master by this push:
new 0f3836e1b0 mark Closure min variants as Incubating
0f3836e1b0 is described below
commit 0f3836e1b02113268d35b2ffc9128c14399a476b
Author: Paul King <pa...@asert.com.au>
AuthorDate: Sun Jan 15 10:23:42 2023 +1000
mark Closure min variants as Incubating
---
src/main/java/org/codehaus/groovy/runtime/ArrayGroovyMethods.java | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/src/main/java/org/codehaus/groovy/runtime/ArrayGroovyMethods.java b/src/main/java/org/codehaus/groovy/runtime/ArrayGroovyMethods.java
index 32de74c0fb..2d04cbe724 100644
--- a/src/main/java/org/codehaus/groovy/runtime/ArrayGroovyMethods.java
+++ b/src/main/java/org/codehaus/groovy/runtime/ArrayGroovyMethods.java
@@ -25,6 +25,7 @@ import groovy.lang.Range;
import groovy.transform.stc.ClosureParams;
import groovy.transform.stc.FirstParam;
import groovy.transform.stc.FromString;
+import org.apache.groovy.lang.annotation.Incubating;
import org.codehaus.groovy.runtime.callsite.BooleanClosureWrapper;
import org.codehaus.groovy.runtime.dgmimpl.NumberNumberDiv;
import org.codehaus.groovy.runtime.typehandling.DefaultTypeTransformation;
@@ -3685,6 +3686,7 @@ public class ArrayGroovyMethods extends DefaultGroovyMethodsSupport {
* @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);
}
@@ -3738,6 +3740,7 @@ public class ArrayGroovyMethods extends DefaultGroovyMethodsSupport {
* @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);
}
@@ -3791,6 +3794,7 @@ public class ArrayGroovyMethods extends DefaultGroovyMethodsSupport {
* @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);
}