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);
}
* 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);