groovy-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pascalschumac...@apache.org
Subject [2/2] incubator-groovy git commit: GROOVY-7552: add org.codehaus.groovy.runtime.DefaultGroovyMethods.isEmpty(Iterable) (closes #129)
Date Sun, 01 Nov 2015 11:50:47 GMT
GROOVY-7552: add org.codehaus.groovy.runtime.DefaultGroovyMethods.isEmpty(Iterable) (closes
#129)

fix test and since javadoc tag


Project: http://git-wip-us.apache.org/repos/asf/incubator-groovy/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-groovy/commit/a28c72af
Tree: http://git-wip-us.apache.org/repos/asf/incubator-groovy/tree/a28c72af
Diff: http://git-wip-us.apache.org/repos/asf/incubator-groovy/diff/a28c72af

Branch: refs/heads/master
Commit: a28c72afe0af2700d5f8af5d85ba5281689fed0a
Parents: 77677bc
Author: PascalSchumacher <pascalschumacher@gmx.net>
Authored: Tue Oct 6 14:32:44 2015 +0200
Committer: pascalschumacher <pascalschumacher@gmx.net>
Committed: Sun Nov 1 12:50:18 2015 +0100

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


http://git-wip-us.apache.org/repos/asf/incubator-groovy/blob/a28c72af/src/main/org/codehaus/groovy/runtime/DefaultGroovyMethods.java
----------------------------------------------------------------------
diff --git a/src/main/org/codehaus/groovy/runtime/DefaultGroovyMethods.java b/src/main/org/codehaus/groovy/runtime/DefaultGroovyMethods.java
index 26f6e20..ae8f1ff 100644
--- a/src/main/org/codehaus/groovy/runtime/DefaultGroovyMethods.java
+++ b/src/main/org/codehaus/groovy/runtime/DefaultGroovyMethods.java
@@ -6816,13 +6816,13 @@ public class DefaultGroovyMethods extends DefaultGroovyMethodsSupport
{
      * def items = [1]
      * def iterable = { [ hasNext:{ !items.isEmpty() }, next:{ items.pop() } ] as Iterator
} as Iterable
      * assert !iterable.isEmpty()
-     * iterable.next()
+     * iterable.iterator().next()
      * assert iterable.isEmpty()
      * </pre>
      *
      * @param self an Iterable
      * @return true if the iterable has no elements, false otherwise
-     * @since 2.4.5
+     * @since 2.5.0
      */
     public static boolean isEmpty(Iterable self) {
         return !self.iterator().hasNext();


Mime
View raw message