Synopsis: | High amount of different objects as members denotes a high coupling |
Language: | Java |
Severity Level: | 4 |
Category: | Coupling |
Description: |
This rule counts unique attributes, local variables and return types within an object. A number higher than specified threshold can indicate a high degree of coupling. This treshold has been set to 20.
import com.Blah; import org.Bar; import org.Bardo; public class Foo { private Blah var1; private Bar var2; //followed by many imports of unique objects void ObjectC doWork() { Bardo var55; ObjectA var44; ObjectZ var93; return something; } } |