[java] ConstructorCallsOverridableMethod occurs when unused overloaded method is defined #2348
Labels
a:false-positive
PMD flags a piece of code that is not problematic
Milestone
Affects PMD Version: 6.11.0, 6.21.0
Rule: ConstructorCallsOverridableMethod
Description:
If a constructor calls a non-overridable public method, and this method has an overridable overloaded version (which is not called from the constructor or from the non-overridable version,) then a ConstructorCallsOverridableMethod rule exception is raised.
Code Sample demonstrating the issue:
Running PMD through: Gradle (with version 6.11.0) and CLI (with version 6.21.0)
The text was updated successfully, but these errors were encountered: