diff --git a/src/main/java/kieker/analysis/dev/dependencygraphs/DotDependencyGraphConfigurationFactory.java b/src/main/java/kieker/analysis/dev/dependencygraphs/DotDependencyGraphConfigurationFactory.java index c2a07871a3b12222593cbfc7be870bc89200be51..627119fe0021925e4287d8111b18f53ce02178f9 100644 --- a/src/main/java/kieker/analysis/dev/dependencygraphs/DotDependencyGraphConfigurationFactory.java +++ b/src/main/java/kieker/analysis/dev/dependencygraphs/DotDependencyGraphConfigurationFactory.java @@ -78,7 +78,7 @@ public class DotDependencyGraphConfigurationFactory { private final String annotation; public VertexLabelMapper() { - this.annotation = ""; + this.annotation = null; } public VertexLabelMapper(final String annotation) { @@ -88,8 +88,10 @@ public class DotDependencyGraphConfigurationFactory { @Override public String apply(final Vertex vertex) { final StringBuilder statistics = new StringBuilder(); - statistics.append(this.annotation); - statistics.append("\\n"); + if (this.annotation != null) { + statistics.append(this.annotation); + statistics.append("\\n"); + } statistics.append(vertex.getProperty("Name").toString()); statistics.append("\\n"); statistics.append(generateStatistics(vertex));