From 1407177fb1f26b5d283b323924a7df137feaa57d Mon Sep 17 00:00:00 2001 From: Svjatoslav Agejenko Date: Sun, 15 Sep 2013 19:42:42 +0300 Subject: [PATCH] bugfix: fields shall not be static --- .../eu/svjatoslav/inspector/java/structure/ClassGraph.java | 5 +---- .../java/eu/svjatoslav/inspector/java/structure/Filter.java | 4 ++-- 2 files changed, 3 insertions(+), 6 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 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); -- 2.20.1