Details
Description
We have still a lot of false positives due to isolated methods like the following ones:
public class LCOM4WithIsolatedMethods { public void myUnsupportedMethod(){ throw new UnsupportedOperationException("..."); } public String myConstantValue() { return "..."; } }
This class must have an LCOM4 of 1.
Issue Links
- is related to
-
SONARJAVA-74
In case of inheritance the LCOM4 computation should take into account related blocks in parent classes
-
- relates to
-
SONARJAVA-65
Improve handling of isolated methods in LCOM4
-
Why would you want to exclude isolated methods? Isn't that exactly what the metric is trying to measure?