RFR: 8263233: Update java.net and java.nio to use instanceof pattern variable

2021-03-09 Thread Patrick Concannon
Hi, Could someone please review my code for updating the code in the `java.net` and `java.nio` packages to make use of the `instanceof` pattern variable? Kind regards, Patrick - Commit messages: - 8263233: Update java.net and java.nio to use instanceof pattern variable Changes: h

Re: RFR: 8263233: Update java.net and java.nio to use instanceof pattern variable

2021-03-09 Thread Daniel Fuchs
On Tue, 9 Mar 2021 11:07:07 GMT, Patrick Concannon wrote: > Hi, > > Could someone please review my code for updating the code in the `java.net` > and `java.nio` packages to make use of the `instanceof` pattern variable? > > Kind regards, > Patrick LGTM. - Marked as reviewed by

Re: RFR: 8263233: Update java.net and java.nio to use instanceof pattern variable

2021-03-09 Thread Chris Hegarty
On Tue, 9 Mar 2021 11:07:07 GMT, Patrick Concannon wrote: > Hi, > > Could someone please review my code for updating the code in the `java.net` > and `java.nio` packages to make use of the `instanceof` pattern variable? > > Kind regards, > Patrick src/java.base/share/classes/java/net/Interfa

Re: RFR: 8263233: Update java.net and java.nio to use instanceof pattern variable

2021-03-09 Thread Alan Bateman
On Tue, 9 Mar 2021 11:07:07 GMT, Patrick Concannon wrote: > Hi, > > Could someone please review my code for updating the code in the `java.net` > and `java.nio` packages to make use of the `instanceof` pattern variable? > > Kind regards, > Patrick src/java.base/share/classes/java/net/Inet6Ad

Re: RFR: 8263233: Update java.net and java.nio to use instanceof pattern variable

2021-03-09 Thread Michael McMahon
On Tue, 9 Mar 2021 12:32:38 GMT, Chris Hegarty wrote: >> Hi, >> >> Could someone please review my code for updating the code in the `java.net` >> and `java.nio` packages to make use of the `instanceof` pattern variable? >> >> Kind regards, >> Patrick > > src/java.base/share/classes/java/net/In

RFR: JDK-8262992: Improve `@see` output

2021-03-09 Thread Hannes Wallnöfer
This changes the output for `@see` tags to a `` structure. A different CSS style is used if any of the `@see` tag labels are longer than 30 characters or contain a comma. The layout for the default CSS style is similar to the one we had so far with multiple links displayed inline and separated

Re: RFR: JDK-8262992: Improve `@see` output

2021-03-09 Thread Daniel Fuchs
On Tue, 9 Mar 2021 15:04:35 GMT, Hannes Wallnöfer wrote: > This changes the output for `@see` tags to a `` structure. A different > CSS style is used if any of the `@see` tag labels are longer than 30 > characters or contain a comma. > > The layout for the default CSS style is similar to the

Re: RFR: JDK-8262992: Improve `@see` output [v2]

2021-03-09 Thread Hannes Wallnöfer
> This changes the output for `@see` tags to a `` structure. A different > CSS style is used if any of the `@see` tag labels are longer than 30 > characters or contain a comma. > > The layout for the default CSS style is similar to the one we had so far with > multiple links displayed inline a

Re: RFR: 8263233: Update java.net and java.nio to use instanceof pattern variable [v2]

2021-03-09 Thread Patrick Concannon
> Hi, > > Could someone please review my code for updating the code in the `java.net` > and `java.nio` packages to make use of the `instanceof` pattern variable? > > Kind regards, > Patrick Patrick Concannon has updated the pull request incrementally with one additional commit since the last r

Re: RFR: 8263233: Update java.net and java.nio to use instanceof pattern variable [v2]

2021-03-09 Thread Brian Burkhalter
On Tue, 9 Mar 2021 17:59:27 GMT, Patrick Concannon wrote: >> Hi, >> >> Could someone please review my code for updating the code in the `java.net` >> and `java.nio` packages to make use of the `instanceof` pattern variable? >> >> Kind regards, >> Patrick > > Patrick Concannon has updated the

Re: RFR: 8263080: Obsolete relationship in MulticastSocket API documentation. [v2]

2021-03-09 Thread Daniel Fuchs
> Now that DatagramSocket has been updated by JDK-8237352 to support joining > multicast group, this sentence in the API class level documentation of > MulticastSocket is obsolete and should be removed: > > "A MulticastSocket is a (UDP) DatagramSocket, with additional capabilities for > joining

Re: RFR: 8263233: Update java.net and java.nio to use instanceof pattern variable [v2]

2021-03-09 Thread Patrick Concannon
On Tue, 9 Mar 2021 12:44:10 GMT, Alan Bateman wrote: >> Patrick Concannon has updated the pull request incrementally with one >> additional commit since the last revision: >> >> 8263233: Small refactor of equals method in java/net/InterfaceAddress; >> removed superfluous whitespace in java/n

Re: RFR: 8263233: Update java.net and java.nio to use instanceof pattern variable [v2]

2021-03-09 Thread Patrick Concannon
On Tue, 9 Mar 2021 13:01:10 GMT, Michael McMahon wrote: >> src/java.base/share/classes/java/net/InterfaceAddress.java line 107: >> >>> 105: >>> 106: if (Objects.equals(address, cmp.address) && >>> 107: Objects.equals(broadcast, cmp.broadcast) && >> >> This could be

Re: RFR: 8263233: Update java.net and java.nio to use instanceof pattern variable [v2]

2021-03-09 Thread Chris Hegarty
On Tue, 9 Mar 2021 17:59:27 GMT, Patrick Concannon wrote: >> Hi, >> >> Could someone please review my code for updating the code in the `java.net` >> and `java.nio` packages to make use of the `instanceof` pattern variable? >> >> Kind regards, >> Patrick > > Patrick Concannon has updated the

Re: RFR: 8263080: Obsolete relationship in MulticastSocket API documentation. [v2]

2021-03-09 Thread Alan Bateman
On Tue, 9 Mar 2021 18:13:24 GMT, Daniel Fuchs wrote: >> Now that DatagramSocket has been updated by JDK-8237352 to support joining >> multicast group, this sentence in the API class level documentation of >> MulticastSocket is obsolete and should be removed: >> >> "A MulticastSocket is a (UDP)

Re: RFR: 8263233: Update java.net and java.nio to use instanceof pattern variable [v3]

2021-03-09 Thread Patrick Concannon
> Hi, > > Could someone please review my code for updating the code in the `java.net` > and `java.nio` packages to make use of the `instanceof` pattern variable? > > Kind regards, > Patrick Patrick Concannon has updated the pull request incrementally with one additional commit since the last r

Re: RFR: 8263233: Update java.net and java.nio to use instanceof pattern variable [v3]

2021-03-09 Thread Mark Sheppard
On Tue, 9 Mar 2021 19:56:25 GMT, Patrick Concannon wrote: >> Hi, >> >> Could someone please review my code for updating the code in the `java.net` >> and `java.nio` packages to make use of the `instanceof` pattern variable? >> >> Kind regards, >> Patrick > > Patrick Concannon has updated the

Re: RFR: 8263233: Update java.net and java.nio to use instanceof pattern variable [v3]

2021-03-09 Thread Patrick Concannon
On Tue, 9 Mar 2021 18:22:17 GMT, Chris Hegarty wrote: >> Patrick Concannon has updated the pull request incrementally with one >> additional commit since the last revision: >> >> 8263233: Refactored equals method further > > src/java.base/share/classes/java/net/InterfaceAddress.java line 108:

Re: RFR: 8263233: Update java.net and java.nio to use instanceof pattern variable [v3]

2021-03-09 Thread Daniel Fuchs
On Tue, 9 Mar 2021 20:07:14 GMT, Mark Sheppard wrote: >> Patrick Concannon has updated the pull request incrementally with one >> additional commit since the last revision: >> >> 8263233: Refactored equals method further > > src/java.base/share/classes/java/net/NetMulticastSocket.java line 21

Re: RFR: 8263233: Update java.net and java.nio to use instanceof pattern variable [v3]

2021-03-09 Thread Daniel Fuchs
On Tue, 9 Mar 2021 19:56:25 GMT, Patrick Concannon wrote: >> Hi, >> >> Could someone please review my code for updating the code in the `java.net` >> and `java.nio` packages to make use of the `instanceof` pattern variable? >> >> Kind regards, >> Patrick > > Patrick Concannon has updated the

Re: RFR: 8263233: Update java.net and java.nio to use instanceof pattern variable [v3]

2021-03-09 Thread Mark Sheppard
On Tue, 9 Mar 2021 20:26:19 GMT, Daniel Fuchs wrote: >> src/java.base/share/classes/java/net/NetMulticastSocket.java line 219: >> >>> 217: if (addr == null) >>> 218: addr = new InetSocketAddress(0); >>> 219: if (!(addr instanceof InetSocketAddress epoint)) >> >> in t