diff --git a/maven-compat/src/main/java/org/apache/maven/repository/metadata/MetadataGraph.java b/maven-compat/src/main/java/org/apache/maven/repository/metadata/MetadataGraph.java index c226ff5701..1ed579bc9e 100644 --- a/maven-compat/src/main/java/org/apache/maven/repository/metadata/MetadataGraph.java +++ b/maven-compat/src/main/java/org/apache/maven/repository/metadata/MetadataGraph.java @@ -400,10 +400,10 @@ public class MetadataGraph { // ------------------------------------------------------------------------ @Override public String toString() { - StringBuilder sb = new StringBuilder(512); if (isEmpty()) { return "empty"; } + StringBuilder sb = new StringBuilder(512); for (MetadataGraphVertex v : vertices) { sb.append("Vertex: ").append(v.getMd().toString()).append('\n'); List ins = getIncidentEdges(v);