On Fri, 15 Oct 2021 18:51:44 GMT, Andrey Turbanov <d...@openjdk.java.net> wrote:
> Non-static classes hold a link to their parent classes, which can be avoided. src/java.prefs/macosx/classes/java/util/prefs/MacOSXPreferencesFile.java line 102: > 100: } > 101: > 102: private class SyncTask extends TimerTask { IDEA suggested to add `static` here too. But this class is unused. And I think it's better to drop it. ------------- PR: https://git.openjdk.java.net/jdk/pull/5971