Package edu.umd.cs.findbugs

Examples of edu.umd.cs.findbugs.HTMLBugReporter


    SaveReturn printHtml(final File f) {

        Future<Object> waiter = mainFrame.getBackgroundExecutor().submit(new Callable<Object>() {
            @Override
            public Object call() throws Exception {
                HTMLBugReporter reporter = new HTMLBugReporter( mainFrame.getProject(), "default.xsl");
                reporter.setIsRelaxed(true);
                reporter.setOutputStream(UTF8.printStream(new FileOutputStream(f)));
                for(BugInstance bug : mainFrame.getBugCollection().getCollection()) {
                    try {
                        if (mainFrame.getViewFilter().show(bug)) {
                            reporter.reportBug(bug);
                        }
                    } catch (Exception e) {
                        e.printStackTrace();
                    }
                }
                reporter.finish();
                return null;
            }
        });
        try {
            waiter.get();
View Full Code Here

TOP

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

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.