You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@groovy.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2015/10/06 10:57:26 UTC
[jira] [Commented] (GROOVY-7552) add
org.codehaus.groovy.runtime.DefaultGroovyMethods.isEmpty(Iterable)
[ https://issues.apache.org/jira/browse/GROOVY-7552?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14944744#comment-14944744 ]
ASF GitHub Bot commented on GROOVY-7552:
----------------------------------------
GitHub user PascalSchumacher opened a pull request:
https://github.com/apache/incubator-groovy/pull/129
Groovy 7552: add org.codehaus.groovy.runtime.DefaultGroovyMethods.isEmpty(Iterable)
created out of patch https://issues.apache.org/jira/browse/GROOVY-7552 submitted by Jochen Kemnade
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/PascalSchumacher/incubator-groovy GROOVY-7552
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/incubator-groovy/pull/129.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #129
----
commit 0fafd37d1f1b4c697664d8076d4012eb8a214fa8
Author: Jochen Kemnade <jo...@eddyson.de>
Date: 2015-08-19T12:19:16Z
GROOVY-7552: add org.codehaus.groovy.runtime.DefaultGroovyMethods.isEmpty(Iterable)
----
> add org.codehaus.groovy.runtime.DefaultGroovyMethods.isEmpty(Iterable)
> ----------------------------------------------------------------------
>
> Key: GROOVY-7552
> URL: https://issues.apache.org/jira/browse/GROOVY-7552
> Project: Groovy
> Issue Type: Improvement
> Affects Versions: 2.4.5
> Reporter: Jochen Kemnade
> Priority: Minor
> Labels: patch-available
> Attachments: 0001-add-org.codehaus.groovy.runtime.DefaultGroovyMethods.patch
>
>
> {code}
> def items = [1]
> def iterable = { [ hasNext:{ !items.isEmpty() }, next:{ items.pop() } ] as Iterator } as Iterable
> assert !iterable.isEmpty()
> iterable.next()
> assert iterable.isEmpty()
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)