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
The rule counts all methods of a file regardless whether they belong to the same class or not. If you have a file with multiple (inner) classes, then all classes are considered as a single class. This is wrong - the inner classes should be considered separate.
Affects PMD Version: 6.x
Rule: ExcessivePublicCount
Description:
The rule counts all methods of a file regardless whether they belong to the same class or not. If you have a file with multiple (inner) classes, then all classes are considered as a single class. This is wrong - the inner classes should be considered separate.
This bug has been fixed with PMD 7.0.0 already.
Found via #3123.
Code Sample demonstrating the issue:
Expected outcome:
PMD should count 1 method for each class. But currently, it counts 2 methods for OuterClass, which is wrong.
The text was updated successfully, but these errors were encountered: