RFR: 8286663: Resolve IDE warnings in WTrayIconPeer and SystemTray [v3]

Sergey Bylokhov serb at openjdk.java.net
Fri Jun 3 21:23:33 UTC 2022


On Fri, 27 May 2022 20:48:30 GMT, Alexey Ivanov <aivanov at openjdk.org> wrote:

>> **WTrayIconPeer**: removed duplicate call to `popupParent.dispose()` that might cause NPE (it looks `popupParent` cannot be `null`); organised imports.
>> 
>> **SystemTray**: removed redundant initialisers; replaced sized array with empty array in `toArray` call; dropped `newValue != null` chained with `equals`.
>
> Alexey Ivanov has updated the pull request incrementally with one additional commit since the last revision:
> 
>   Use method reference in setSystemTrayAccessor instead of anonymous class

Marked as reviewed by serb (Reviewer).

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

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



More information about the client-libs-dev mailing list