I'm getting from Sonar a lot of these violations, but I think they are not really cycles.
So for example I have:
de.codeplumber.core.abc.core.Holder.java
de.codeplumber.core.xyz.core.User.java
The Holder.java uses User.java as one of the properties and has getter and setter for getting and setting the User object. Below is the code for Holder.java
private User user = new User();
public User getUser() {
return user ;
}
public void setUser(User user) {
this.user = user;
}
Now Sonar is reporting the violation in Holder.java
Remove the dependency on the source file "de/codeplumber/core/xyz/core/User.java" to break a package cycle.
There is no reverse dependency on the package to Holder.java from the package of User.java.
I am not understanding why sonar reports this issue. Previously I had the cyclic dependency in some other classes and i fixed it as there were direct cyclic dependency.
Any help appreciated.