for backward compatibility with Java plugin
</exclusion>
</exclusions>
</dependency>
+ <dependency>
+ <groupId>org.codehaus.sonar</groupId>
+ <artifactId>sonar-graph</artifactId>
+ <!-- Set to provided to not be visible by plugins -->
+ <scope>provided</scope>
+ </dependency>
<!-- TODO we can't remove hibernate-annotations, because currently it's used
moreover it contains transitive dependency on dom4j, which is used in some plugins
-->
import org.apache.commons.lang.builder.HashCodeBuilder;
import org.apache.commons.lang.builder.ToStringBuilder;
import org.sonar.api.resources.Resource;
+import org.sonar.graph.Edge;
/**
* @deprecated since 5.2 No more design features
*/
@Deprecated
-public class Dependency {
+public class Dependency implements Edge<Resource> {
private Resource from;
private Resource to;
this.to = to;
}
+ @Override
public Resource getFrom() {
return from;
}
this.from = from;
}
+ @Override
public Resource getTo() {
return to;
}
return this;
}
+ @Override
public int getWeight() {
return weight;
}