} finally {
}
- if (!keepDotFile) {
+ if (!keepDotFile)
// delete dot file
new File(dotFilePath).delete();
- }
} catch (final IOException e) {
System.err.println(e);
}
/**
* 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) {