From: Svjatoslav Agejenko Date: Wed, 4 Mar 2015 20:08:45 +0000 (+0200) Subject: usability improvement X-Git-Tag: javainspect-1.5~8 X-Git-Url: http://www2.svjatoslav.eu/gitweb/?a=commitdiff_plain;h=55258e8ea4f092ae1f1fe6b4385bf7920c20acc8;p=javainspect.git usability improvement --- diff --git a/src/main/java/eu/svjatoslav/inspector/java/structure/ClassGraph.java b/src/main/java/eu/svjatoslav/inspector/java/structure/ClassGraph.java index f3afd80..62e0911 100755 --- a/src/main/java/eu/svjatoslav/inspector/java/structure/ClassGraph.java +++ b/src/main/java/eu/svjatoslav/inspector/java/structure/ClassGraph.java @@ -119,10 +119,9 @@ public class ClassGraph { } finally { } - if (!keepDotFile) { + if (!keepDotFile) // delete dot file new File(dotFilePath).delete(); - } } catch (final IOException e) { System.err.println(e); } @@ -173,12 +172,13 @@ public class ClassGraph { /** * Hide orphaned class that have no references */ - public void hideOrphanedClasses() { + public ClassGraph hideOrphanedClasses() { for (final ClassDescriptor classDescriptor : fullyQualifiedNameToClassMap .values()) classDescriptor.hideClassIfNoReferences(); + return this; } protected boolean isClassShown(final String className) {