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 9f19bbef79 add @since versions
9f19bbef79 is described below
commit 9f19bbef79359fcf55f6885352bdb37e402ccdbb
Author: Paul King <[email protected]>
AuthorDate: Wed May 14 10:27:21 2025 +1000
add @since versions
---
src/main/java/org/codehaus/groovy/runtime/DefaultGroovyMethods.java | 4 ++++
1 file changed, 4 insertions(+)
diff --git
a/src/main/java/org/codehaus/groovy/runtime/DefaultGroovyMethods.java
b/src/main/java/org/codehaus/groovy/runtime/DefaultGroovyMethods.java
index 1f26369fcc..35c09f824f 100644
--- a/src/main/java/org/codehaus/groovy/runtime/DefaultGroovyMethods.java
+++ b/src/main/java/org/codehaus/groovy/runtime/DefaultGroovyMethods.java
@@ -12587,6 +12587,7 @@ public class DefaultGroovyMethods extends
DefaultGroovyMethodsSupport {
* @param self an Iterable
* @param count the (non-negative) number of times to repeat
* @return a collection containing the repeated elements
+ * @since 5.0.0
*/
public static <T> Collection<T> repeat(Iterable<T> self, int count) {
Collection<T> result = self instanceof Collection ?
createSimilarCollection((Collection<T>) self, Math.max(count, 0)) : new
ArrayList<>();
@@ -12603,6 +12604,7 @@ public class DefaultGroovyMethods extends
DefaultGroovyMethodsSupport {
*
* @param self an Iterable
* @return an iterator containing the (infinite) repeated elements
+ * @since 5.0.0
*/
public static <T> Iterator<T> repeat(Iterable<T> self) {
return repeat(self.iterator());
@@ -12618,6 +12620,7 @@ public class DefaultGroovyMethods extends
DefaultGroovyMethodsSupport {
* @param self an Iterator
* @param count the (non-negative) number of times to repeat
* @return an iterator containing the repeated elements
+ * @since 5.0.0
*/
public static <T> Iterator<T> repeat(Iterator<T> self, int count) {
return new RepeatIterator<>(self, count);
@@ -12632,6 +12635,7 @@ public class DefaultGroovyMethods extends
DefaultGroovyMethodsSupport {
*
* @param self an Iterable
* @return an iterator containing the (infinite) repeated elements
+ * @since 5.0.0
*/
public static <T> Iterator<T> repeat(Iterator<T> self) {
return new RepeatIterator<>(self);