Package edu.umd.cs.findbugs

Examples of edu.umd.cs.findbugs.SortedBugCollection


     *            FindBugs project representing analyzed classes
     * @param bugReporter
     *            Reporter used to collect the new warnings
     */
    private void updateBugCollection(Project findBugsProject, Reporter bugReporter, boolean incremental) {
        SortedBugCollection newBugCollection = bugReporter.getBugCollection();
        logDirty(newBugCollection);
        try {
            st.newPoint("getBugCollection");
            SortedBugCollection oldBugCollection = FindbugsPlugin.getBugCollection(project, monitor, false);
            logDirty(oldBugCollection);

            st.newPoint("mergeBugCollections");
            SortedBugCollection resultCollection = mergeBugCollections(oldBugCollection, newBugCollection, incremental);
            logDirty(resultCollection);
             resultCollection.getProject().setGuiCallback(new EclipseGuiCallback(project));
            resultCollection.setTimestamp(System.currentTimeMillis());
            resultCollection.setDoNotUseCloud(false);
            resultCollection.reinitializeCloud();
            logDirty(resultCollection);

            // will store bugs in the default FB file + Eclipse project session
            // props
            st.newPoint("storeBugCollection");
View Full Code Here


        // TODO copyDeadBugs must be true, otherwise incremental compile leads
        // to
        // unknown bug instances appearing (merged collection doesn't contain
        // all bugs)
        boolean copyDeadBugs = incremental;
        SortedBugCollection merged = (SortedBugCollection) (update.mergeCollections(firstCollection, secondCollection,
                copyDeadBugs, incremental));
        return merged;
    }
View Full Code Here

        super();
        this.monitor = monitor;
        this.project = project;
        // TODO we do not need to sort bugs, so we can optimize performance and
        // use just a list here
        this.bugCollection = new SortedBugCollection(getProjectStats(), findBugsProject);
    }
View Full Code Here

TOP

Related Classes of edu.umd.cs.findbugs.SortedBugCollection

Copyright © 2018 www.massapicom. 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.