On Tue, 9 Mar 2021 11:07:07 GMT, Patrick Concannon <[email protected]>
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/Inet6Address.java line 265:
> 263:
> 264: public boolean equals(Object o) {
> 265: if (! (o instanceof Inet6AddressHolder that)) {
There's a spurious space after "!" can be probably be fixed while you are on
that line.
-------------
PR: https://git.openjdk.java.net/jdk/pull/2890