RFR: 8253100: Fix "no comment" warnings in java.base/java.net [v2]

Daniel Fuchs dfuchs at openjdk.java.net
Thu Feb 25 17:04:42 UTC 2021


On Thu, 25 Feb 2021 16:59:07 GMT, Naoto Sato <naoto at openjdk.org> wrote:

>> Daniel Fuchs has updated the pull request incrementally with one additional commit since the last revision:
>> 
>>   Fixed comment
>
> src/java.base/share/classes/java/net/InetSocketAddress.java line 326:
> 
>> 324:     /**
>> 325:      * Throws {@code InvalidObjectException}, always.
>> 326:      * @throws ObjectStreamException always
> 
> Is this correct? Seems to contradict each other.

`InvalidObjectException` is a subclass of `ObjectStreamException`.

-------------

PR: https://git.openjdk.java.net/jdk/pull/2715


More information about the net-dev mailing list