You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description:
AvoidCallingFinalize detects some false positives, some are not even method calls.
This rule is implemented in pmd-java-6.22.0-sources.jar!\net\sourceforge\pmd\lang\java\rule\errorprone\AvoidCallingFinalizeRule.java,
The following piece of code is used to detect the call of finalize():
adangel
changed the title
[java]AvoidCallingFinalize detects some false positives
[java] AvoidCallingFinalize detects some false positives
Jul 16, 2020
Affects PMD Version:
6.22.0
Rule:
AvoidCallingFinalize
Description:
AvoidCallingFinalize detects some false positives, some are not even method calls.
This rule is implemented in pmd-java-6.22.0-sources.jar!\net\sourceforge\pmd\lang\java\rule\errorprone\AvoidCallingFinalizeRule.java,
The following piece of code is used to detect the call of finalize():
This code is to find calling of
finalize()
by name, which causes some false positives to be detectedCode Sample demonstrating the issue:
Example 1:
Example 2:
Example 3:
Expected outcome:
false-positive
Running PMD through:
CLI
The text was updated successfully, but these errors were encountered: