How to address the “Do not override the Object.finalize() method” issue
问题 Recently I figure out one tool [SonarQube] who helps me to find out the potential threats into code, I have addressed all issues reported by the tool. But it also gives me a potential threats issue for "protected void finalize()" method which is been override by me, tool displaying me a message "Do not override the Object.finalize() method". Can anybody please help me how to address this issue, the overrided method also include some business logic. 回答1: Never. Never! Never put any business