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:
Carlos Sanchez Gonzalez 2006-01-24 07:41:04 +00:00
parent 5569bed9b8
commit 8e3a3cf63d
2 changed files with 8 additions and 1 deletions

View File

@ -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()

View File

@ -216,4 +216,10 @@ public class ResolutionNode
}
return success;
}
public String toString()
{
return artifact.toString() + " (" + depth + ")";
}
}