X-Git-Url: http://www2.svjatoslav.eu/gitweb/?a=blobdiff_plain;f=src%2Fmain%2Fjava%2Feu%2Fsvjatoslav%2Finspector%2Fjava%2Fstructure%2FClassGraph.java;h=31ddbede42d3749cb8a8a538a958993017134e78;hb=348b57a22fd70583c6da1de0c414d867a6345cfa;hp=036d5834cc01c6e731453872054b96f5c3a1a288;hpb=1407177fb1f26b5d283b323924a7df137feaa57d;p=javainspect.git diff --git a/src/main/java/eu/svjatoslav/inspector/java/structure/ClassGraph.java b/src/main/java/eu/svjatoslav/inspector/java/structure/ClassGraph.java old mode 100644 new mode 100755 index 036d583..31ddbed --- a/src/main/java/eu/svjatoslav/inspector/java/structure/ClassGraph.java +++ b/src/main/java/eu/svjatoslav/inspector/java/structure/ClassGraph.java @@ -1,10 +1,10 @@ /* * JavaInspect - Utility to visualize java software - * Copyright (C) 2013, Svjatoslav Agejenko, svjatoslav@svjatoslav.eu + * Copyright (C) 2013-2014, Svjatoslav Agejenko, svjatoslav@svjatoslav.eu * * This program is free software; you can redistribute it and/or - * modify it under the terms of version 2 of the GNU General Public License - * as published by the Free Software Foundation. + * modify it under the terms of version 3 of the GNU Lesser General Public License + * or later as published by the Free Software Foundation. */ package eu.svjatoslav.inspector.java.structure; @@ -51,7 +51,7 @@ public class ClassGraph { * objects that shall be added to graph */ public ClassGraph(final Object... objects) { - for (Object object : objects) + for (final Object object : objects) addClass(object.getClass()); } @@ -138,8 +138,8 @@ public class ClassGraph { // execute GraphViz to visualize graph try { Runtime.getRuntime() - .exec(new String[] { "dot", "-Tpng", dotFilePath, "-o", - imageFilePath }).waitFor(); + .exec(new String[] { "dot", "-Tpng", dotFilePath, "-o", + imageFilePath }).waitFor(); } catch (final InterruptedException e) { } finally { } @@ -170,6 +170,10 @@ public class ClassGraph { return resultStr; } + public Filter getFilter() { + return filter; + } + /** * Hide orphaned class that have no references */ @@ -180,11 +184,7 @@ public class ClassGraph { } - public Filter getFilter() { - return filter; - } - - public void setFilter(Filter filter) { + public void setFilter(final Filter filter) { this.filter = filter; }