RFR: 6201035: Undefined behavior of MatteBorder Ctors [v3]

Sergey Bylokhov serb at openjdk.org
Thu Oct 27 22:45:28 UTC 2022


On Thu, 27 Oct 2022 16:05:19 GMT, Alexey Ivanov <aivanov at openjdk.org> wrote:

>> Prasanta Sadhukhan has updated the pull request incrementally with one additional commit since the last revision:
>> 
>>   revert typo
>
> src/java.desktop/share/classes/javax/swing/border/MatteBorder.java line 79:
> 
>> 77:      * @param matteColor the color rendered for the border
>> 78:      * @throws {@code NullPointerException} if {@code borderInsets}
>> 79:      *          is {@code null}
> 
> Would `@inheritDoc` work in this case? The message is the same as in its super class.
> Suggestion:
> 
>      * @throws {@inheritDoc}

If we updated the parent class should not we do the same for all upto AbstractBorder?

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

PR: https://git.openjdk.org/jdk/pull/10740



More information about the client-libs-dev mailing list