Examples of DetectorFactory


Examples of edu.umd.cs.findbugs.DetectorFactory

    boolean isDetectorConfigurationChanged(UserPreferences pref1, UserPreferences pref2) {

        Iterator<DetectorFactory> iterator = DetectorFactoryCollection.instance().factoryIterator();
        while (iterator.hasNext()) {
            DetectorFactory factory = iterator.next();
            // Only compare non-hidden factories
            if (factory.isHidden() && !detectorTab.isHiddenVisible()) {
                continue;
            }
            if (pref1.isDetectorEnabled(factory) ^ pref2.isDetectorEnabled(factory)) {
                return true;
            }
View Full Code Here

Examples of edu.umd.cs.findbugs.DetectorFactory

            attributes.put(FindBugsMarker.UNIQUE_ID, uniqueId);
        }

        // Set unique id of the plugin, so we can easily refer back
        // to it later: for example, when the user group markers by plugin.
        DetectorFactory detectorFactory = mp.bug.getDetectorFactory();
        if(detectorFactory != null) {
            String pluginId = detectorFactory.getPlugin().getPluginId();
            if (pluginId != null) {
                attributes.put(FindBugsMarker.DETECTOR_PLUGIN_ID, pluginId);
            } else {
                // XXX to avoid errors. Don't know what to do if the plugin is missing
                attributes.put(FindBugsMarker.DETECTOR_PLUGIN_ID, "edu.umd.cs.findbugs.plugins.core");
View Full Code Here

Examples of edu.umd.cs.findbugs.DetectorFactory

            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.DetectorFactory

        }
        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.