Synopsis: | This class has too many public methods and attributes |
Language: | Java |
Severity Level: | 2 |
Category: | CodeSize |
Description: |
A large number of public methods and attributes declared in a class can indicate the
class may need to be broken up as increased effort will be required to thoroughly test it. This rule is triggered in case a class has 45 or more public methods and/or attributes.public class Foo { public String value; public Bar something; public Variable var; // [... more more public attributes ...] public void doWork() {} public void doMoreWork() {} public void doWorkAgain() {} // [... more more public methods ...] } |