The following document contains the results of PMD's CPD 5.3.2.
| File | Line |
|---|---|
| org/nuxeo/build/maven/graph/FlatPrinterDependencyVisitor.java | 103 |
| org/nuxeo/build/maven/graph/TreePrinterDependencyVisitor.java | 201 |
}
/**
* @return String representation depending on {@link #format}
* @see PrintGraphTask#FORMAT_GAV
* @see PrintGraphTask#FORMAT_KV_F_GAV
*/
public String toString(DependencyNode node) {
Artifact artifact = node.getArtifact();
Dependency dependency = node.getDependency();
StringBuilder sb = new StringBuilder();
switch (format) {
case 1:
sb.append(artifact.getFile().getName());
sb.append('=');
// fall through
case 0:
sb.append(artifact.getGroupId());
sb.append(':').append(artifact.getArtifactId());
sb.append(':').append(artifact.getVersion());
sb.append(':').append(artifact.getExtension());
sb.append(':').append(artifact.getClassifier());
sb.append(':').append(dependency.getScope());
break;
default:
return "Unknown format: " + format + "!";
} | |