Stop complaining of "'protected' visibility is effectively 'private' in final class" for function 'finalize'


#1

According to the finalize official document

According to Java’s rules, finalize() must not be private.

The warning is annoying…


#2

Please file a YouTrack issue.


#3

JVM 9 workaround :slight_smile:

https://docs.oracle.com/javase/9/docs/api/java/lang/ref/Cleaner.html