RFR: 8286663: Resolve IDE warnings in WTrayIconPeer and SystemTray [v3]
Harshitha Onkar
honkar at openjdk.java.net
Tue Jun 7 19:52:53 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 honkar (Author).
-------------
PR: https://git.openjdk.java.net/jdk/pull/8850
More information about the client-libs-dev
mailing list