bugfix: fields shall not be static
authorSvjatoslav Agejenko <svjatoslav@svjatoslav.eu>
Sun, 15 Sep 2013 16:42:42 +0000 (19:42 +0300)
committerSvjatoslav Agejenko <svjatoslav@svjatoslav.eu>
Sun, 15 Sep 2013 16:42:42 +0000 (19:42 +0300)
src/main/java/eu/svjatoslav/inspector/java/structure/ClassGraph.java
src/main/java/eu/svjatoslav/inspector/java/structure/Filter.java

index 7bae6f3..036d583 100644 (file)
@@ -22,10 +22,7 @@ import eu.svjatoslav.inspector.java.methods.ProjectScanner;
 public class ClassGraph {
 
        public static void render(final String graphName, final Class... classes) {
-               final ClassGraph classGraph = new ClassGraph();
-
-               for (final Class clazz : classes)
-                       classGraph.addClass(clazz);
+               final ClassGraph classGraph = new ClassGraph(classes);
 
                classGraph.generateGraph(graphName);
        }
index 0dba93e..94e6d2c 100644 (file)
@@ -21,9 +21,9 @@ public class Filter {
         * Otherwise every class in included in graph that is not blacklisted.
         */
 
-       private static final List<String> blacklistClassPatterns = new ArrayList<String>();
+       private final List<String> blacklistClassPatterns = new ArrayList<String>();
 
-       private static final List<String> whitelistClassPatterns = new ArrayList<String>();
+       private final List<String> whitelistClassPatterns = new ArrayList<String>();
 
        public void blacklistClassPattern(final String pattern) {
                blacklistClassPatterns.add(pattern);