Examples of DetectorFactoryCollection


Examples of edu.umd.cs.findbugs.DetectorFactoryCollection

        }

        if (cls == null) {
            // Find the dataflow class from the plugin in which it was loaded

            DetectorFactoryCollection detectorFactoryCollection = analysisCache.getDatabase(DetectorFactoryCollection.class);
            for (Iterator<Plugin> i = detectorFactoryCollection.pluginIterator(); i.hasNext();) {
                Plugin plugin = i.next();

                try {
                    cls = asDataflowClass(plugin.getClassLoader().loadClass(dataflowClassName));
                    break;
View Full Code Here

Examples of edu.umd.cs.findbugs.DetectorFactoryCollection

        if (omitVisitors == null) {
            log.debug("omitVisitors is null");
            return;
        }
        List<String> detectorsList = Arrays.asList(StringUtils.split(omitVisitors, ","));
        final DetectorFactoryCollection dfc = DetectorFactoryCollection.instance();
        for (String d : detectorsList) {
            final DetectorFactory df = dfc.getFactory(d);
            if (df == null) {
                log.error(String.format("[%s]: IGNORING unknown detector [%s]", LOG_PREFIX, d));
            } else {
                prefs.enableDetector(df, false);
            }
View Full Code Here

Examples of edu.umd.cs.findbugs.DetectorFactoryCollection

        if (visitors == null) {
            return;
        }
        List<String> detectorsList = Arrays.asList(StringUtils.split(visitors, ","));
        prefs.enableAllDetectors(false);
        final DetectorFactoryCollection dfc = DetectorFactoryCollection.instance();
        for (String d : detectorsList) {
            final DetectorFactory df = dfc.getFactory(d);
            if (df == null) {
                log.error(String.format("[%s]: IGNORING unknown detector [%s]", LOG_PREFIX, d));
            } else {
                prefs.enableDetector(df, true);
            }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.