From 55258e8ea4f092ae1f1fe6b4385bf7920c20acc8 Mon Sep 17 00:00:00 2001 From: Svjatoslav Agejenko Date: Wed, 4 Mar 2015 22:08:45 +0200 Subject: [PATCH] usability improvement --- .../eu/svjatoslav/inspector/java/structure/ClassGraph.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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) { -- 2.20.1