mirror of https://github.com/apache/maven.git
Improve toString methods with scope info and depth
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@371856 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
5569bed9b8
commit
8e3a3cf63d
|
@ -258,7 +258,8 @@ public class DefaultArtifact
|
|||
public String toString()
|
||||
{
|
||||
return getDependencyConflictId() + ":" +
|
||||
( version != null || baseVersion != null ? getBaseVersion() : versionRange.toString() );
|
||||
( version != null || baseVersion != null ? getBaseVersion() : versionRange.toString() ) +
|
||||
":" + scope;
|
||||
}
|
||||
|
||||
public int hashCode()
|
||||
|
|
|
@ -216,4 +216,10 @@ public class ResolutionNode
|
|||
}
|
||||
return success;
|
||||
}
|
||||
|
||||
public String toString()
|
||||
{
|
||||
return artifact.toString() + " (" + depth + ")";
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue