From: Svjatoslav Agejenko Date: Thu, 4 Jul 2013 07:55:36 +0000 (+0300) Subject: properly handle nested classes X-Git-Tag: javainspect-1.1~14^2~1 X-Git-Url: http://www2.svjatoslav.eu/gitweb/?a=commitdiff_plain;h=5f44b37657159d7ded38d88fa7a184fabe347d10;p=javainspect.git properly handle nested classes --- diff --git a/src/main/java/eu/svjatoslav/inspector/java/structure/ClassDescriptor.java b/src/main/java/eu/svjatoslav/inspector/java/structure/ClassDescriptor.java index 7e7c4ee..9f4be8a 100644 --- a/src/main/java/eu/svjatoslav/inspector/java/structure/ClassDescriptor.java +++ b/src/main/java/eu/svjatoslav/inspector/java/structure/ClassDescriptor.java @@ -234,6 +234,8 @@ public class ClassDescriptor implements GraphElement { if (isArray) result += " []"; + // this is needed for nested classes + result = result.replace('$', '.'); return result; } @@ -286,7 +288,7 @@ public class ClassDescriptor implements GraphElement { public String getGraphId() { final String result = "class_" + fullyQualifiedName.replace('.', '_').replace(";", "") - .replace("[L", ""); + .replace("[L", "").replace('$', '_'); return result; }