Bugfix: no langer generate illegal square brackets in the dot file
authorSvjatoslav Agejenko <svjatoslav@svjatoslav.eu>
Wed, 19 Apr 2017 19:50:01 +0000 (22:50 +0300)
committerSvjatoslav Agejenko <svjatoslav@svjatoslav.eu>
Wed, 19 Apr 2017 19:50:01 +0000 (22:50 +0300)
src/main/java/eu/svjatoslav/inspector/java/structure/ClassDescriptor.java

index c21761c..3bd1049 100755 (executable)
@@ -318,8 +318,12 @@ public class ClassDescriptor implements GraphElement, Comparable<ClassDescriptor
     @Override
     public String getGraphId() {
         final String result = "class_"
-                + fullyQualifiedName.replace('.', '_').replace(";", "")
-                .replace("[L", "").replace('$', '_');
+                + fullyQualifiedName
+                .replace('.', '_')
+                .replace(";", "")
+                .replace("[L", "")
+                .replace("[[", "")
+                .replace('$', '_');
         return result;
     }