ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject DO NOT REPLY [Bug 52829] implement Iterable interface in FileSet and others
Date Fri, 09 Mar 2012 10:24:38 GMT

--- Comment #2 from Jarek Czekalski <> 2012-03-09 10:24:38 UTC
To add some background: FileSet.iterator() returns Object type. So one using
iterator() must do the conversion manually.

To make "for" loops more convenient you suggest that Iterable should return a
specific, more useful type. But it would be inconsistent with iterator(). I
don't mind it, just commenting.

If that's too difficult to choose the ideal Iterable type at the moment, you
could simply implement Iterable<Object>. I guess making a specialized Iterable
in the future would not break any code relying on Iterable<Object>.

Anyway I don't feel competent to make directions in this matter, so I'll switch
to a listening mode from now on.

Configure bugmail:
------- You are receiving this mail because: -------
You are the assignee for the bug.

View raw message