RFR 8081678: Add Stream returning methods to classes where there currently exist only Enumeration returning methods

Paul Sandoz paul.sandoz at oracle.com
Wed Jun 3 20:17:39 UTC 2015


On Jun 3, 2015, at 9:27 PM, Alan Bateman <Alan.Bateman at oracle.com> wrote:

> On 03/06/2015 17:47, Paul Sandoz wrote:
>> :
>> Ok, i removed it but added an assert for the array being non-null and containing at least one element. I also refined the documentation of the stream returning method in light of this:
>> 
>>   http://cr.openjdk.java.net/~psandoz/jdk9/JDK-8081678-enumeration-and-stream/webrev/
>> 
> The update looks good.
> 
> A minor point on getInetAddresses where the javadoc has been changed to "Get an Enumeration ...". I think that would be better as "Returns an Enumeration". Same thing in inetAddresses() where "Return" would read a bit better (IMO anyway).
> 

It's frustratingly inconsistent throughout, i tried to make it locally consistent (for example, see the instance methods for sub interfaces). The whole doc needs to be consistently updated.


> A niggle in inetAddresses is that it's got two /**.
> 

Ooops fixed.


> I was surprised to see PermissionCollection on the list, I don't know how often that is used.
> 

grepcode.com shows quite a few usages of PermissionsCollection.elements(). Twas cheap to add.


> For the tests then @library ../../util/streambootlib doesn't seem right. Is it time to move some infrastructure to make it easier to get at in other parts of the suite?
> 

Quite probably, but not with this fix.

Thanks,
Paul.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 841 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://mail.openjdk.java.net/pipermail/net-dev/attachments/20150603/edbc6ca9/signature.asc>


More information about the net-dev mailing list