Consider the following code fragment from JUnit,
public class EachTestNotifier {
private final RunNotifier fNotifier;
private final Description fDescription;
public void fireTestFinished() {
fNotifier.fireTestFinished(fDescription);
}
...
}
In the method fireTestFinished there are references to two class fields, fNotifier and fDescription. JRipples reports edges from fireTestFinished to these fields but not to their types (the classes RunNotifier and Description). Add these types of edges in JRipples. In this particular case, add:
EachTestNotifier.fireTestFinished() -> RunNotifier and
EachTestNotifier.fireTestFinished() -> Description
This is no longer a problem of JRipples.