Personally, I use an explicit cast, which works on both JDK8 and JDK11:
https://github.com/qzind/tray/commit/263d7982b7f8d5967385d8c87dcf4cf49ef78540
Personally, I use an explicit cast, which works on both JDK8 and JDK11:
https://github.com/qzind/tray/commit/263d7982b7f8d5967385d8c87dcf4cf49ef78540