RFR: 6201035: Undefined behavior of MatteBorder Ctors [v3]
Alexey Ivanov
aivanov at openjdk.org
Thu Oct 27 16:13:23 UTC 2022
On Wed, 26 Oct 2022 10:48:48 GMT, Prasanta Sadhukhan <psadhukhan at openjdk.org> wrote:
>> The behavior of MatteBorder constructors taking Insets object as a parameter is undocumented. It would throw NPE if null object is passed to it, which should be documented in the spec.
>
> 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}
-------------
PR: https://git.openjdk.org/jdk/pull/10740
More information about the client-libs-dev
mailing list