Examples of factoryIterator()


Examples of edu.umd.cs.findbugs.DetectorFactoryCollection.factoryIterator()


  public void applyDetectors() {
    final DetectorFactoryCollection detectorFactoryCollection = FindBugsPreferences.getDetectorFactorCollection();

    final Iterator<DetectorFactory> iterator = detectorFactoryCollection.factoryIterator();
    while (iterator.hasNext()) {
      final DetectorFactory factory = iterator.next();
      final Plugin plugin = factory.getPlugin();
      final boolean enabledByUser = Boolean.valueOf(getDetectors().get(factory.getShortName()));
      final boolean enable = enabledByUser && plugin.isGloballyEnabled();
View Full Code Here

Examples of edu.umd.cs.findbugs.DetectorFactoryCollection.factoryIterator()

        // Ensure bug patterns are loaded
        DetectorFactoryCollection factories = DetectorFactoryCollection.instance();

        // Find all bug patterns reported by at least one non-disabled detector.
        Collection<BugPattern> enabledPatternSet = new HashSet<BugPattern>();
        for (Iterator<DetectorFactory> i = factories.factoryIterator(); i.hasNext();) {
            DetectorFactory factory = i.next();
            if (isEnabled(factory)) {
                enabledPatternSet.addAll(factory.getReportedBugPatterns());
            }
        }
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.