You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@groovy.apache.org by "Pascal Schumacher (JIRA)" <ji...@apache.org> on 2015/10/06 11:54:39 UTC
[jira] [Comment Edited] (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=14944813#comment-14944813 ]
Pascal Schumacher edited comment on GROOVY-7552 at 10/6/15 9:54 AM:
--------------------------------------------------------------------
you can run it with {code}gradle testSingleMainJavadocAssertionTest{code}
was (Author: pascalschumacher):
You can run it with {code}gradle testSingleMainJavadocAssertionTest{code}.
> 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
> Components: groovy-jdk
> 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)