From: Svjatoslav Agejenko Date: Sun, 15 Sep 2013 16:42:42 +0000 (+0300) Subject: bugfix: fields shall not be static X-Git-Tag: javainspect-1.3~12 X-Git-Url: http://www2.svjatoslav.eu/gitweb/?a=commitdiff_plain;h=1407177fb1f26b5d283b323924a7df137feaa57d;p=javainspect.git bugfix: fields shall not be static --- 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 7bae6f3..036d583 100644 --- a/src/main/java/eu/svjatoslav/inspector/java/structure/ClassGraph.java +++ b/src/main/java/eu/svjatoslav/inspector/java/structure/ClassGraph.java @@ -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); } diff --git a/src/main/java/eu/svjatoslav/inspector/java/structure/Filter.java b/src/main/java/eu/svjatoslav/inspector/java/structure/Filter.java index 0dba93e..94e6d2c 100644 --- a/src/main/java/eu/svjatoslav/inspector/java/structure/Filter.java +++ b/src/main/java/eu/svjatoslav/inspector/java/structure/Filter.java @@ -21,9 +21,9 @@ public class Filter { * Otherwise every class in included in graph that is not blacklisted. */ - private static final List blacklistClassPatterns = new ArrayList(); + private final List blacklistClassPatterns = new ArrayList(); - private static final List whitelistClassPatterns = new ArrayList(); + private final List whitelistClassPatterns = new ArrayList(); public void blacklistClassPattern(final String pattern) { blacklistClassPatterns.add(pattern);