RFR(s): 8072726: add adapter to convert Enumeration to Iterator
Chris Hegarty
chris.hegarty at oracle.com
Tue May 19 08:29:50 UTC 2015
On 18 May 2015, at 23:45, Stuart Marks <stuart.marks at oracle.com> wrote:
> ….
>
> http://cr.openjdk.java.net/~smarks/reviews/8072726/webrev.1/
This update looks better.
-Chris.
> Changes include:
>
> - updates to spec & examples per above
> - converted NOTE in class doc to @apiNote
> - Rémi's suggested simplifications
> - additional tests for remove()
>
> s'marks
>
>
>> A good stream-ification task would be to identify cases in the JDK where only an Enumeration is returned and additionally provide stream-returning methods, so perhaps PermissionCollection and ClassLoader are good candidates.
>>
>> Paul.
>>
>>
>>
>> On May 16, 2015, at 2:37 AM, Stuart Marks <stuart.marks at oracle.com> wrote:
>>
>>> Hi all,
>>>
>>> Please review this small API enhancement to add a default method "asIterator()" to Enumeration that converts it into an Iterator.
>>>
>>> Webrev:
>>>
>>> http://cr.openjdk.java.net/~smarks/reviews/8072726/webrev.0/
>>>
>>> Bug:
>>>
>>> https://bugs.openjdk.java.net/browse/JDK-8072726
>>>
>>> Thanks,
>>>
>>> s'marks
>>
More information about the core-libs-dev
mailing list