private ExcludeRuleSpec(ExcludeRule rule) {
this.rule = rule;
}</BUG>
@Override
public String toString() {
<BUG>return String.format("{exclude-rule %s}", rule);
}</BUG>
@Override
public boolean equals(Object o) {
if (o == this) {

private ExcludeRuleSpec(ExcludeRule rule) {
this.moduleId = DefaultModuleIdentifier.newId(rule.getId().getModuleId().getOrganisation(), rule.getId().getModuleId().getName());
this.ivyArtifactName = new DefaultIvyArtifactName(rule.getId().getName(), rule.getId().getType(), rule.getId().getExt());
this.matcher = rule.getMatcher();
}
@Override
public String toString() {
return String.format("{exclude-rule %s:%s with matcher %s}", moduleId, ivyArtifactName, matcher.getName());
}
@Override
public boolean equals(Object o) {
if (o == this) {
