RFR: 8269698: Specification for methods of java.awt.im.InputContext should mention that they do nothing [v2]
Sergey Bylokhov
serb at openjdk.java.net
Tue Oct 12 06:10:54 UTC 2021
On Sat, 9 Oct 2021 11:16:29 GMT, Alexander Zvegintsev <azvegint at openjdk.org> wrote:
>> This fix simply describes that the `java.awt.im.InputContext` is a dummy implementation, which may not conform its spec.
>
> Alexander Zvegintsev has updated the pull request incrementally with one additional commit since the last revision:
>
> throw exceptions instead of doc change
src/java.desktop/share/classes/java/awt/im/InputContext.java line 147:
> 145: // real implementation is in sun.awt.im.InputContext
> 146: if (locale == null) {
> 147: throw new NullPointerException();
Probably we can reuse the Objects.requireNonNull()?
-------------
PR: https://git.openjdk.java.net/jdk/pull/5806
More information about the client-libs-dev
mailing list