0

我正在尝试在 Eclipse 内部执行的自定义 SpotBugs 插件中记录详细信息。但是,我无法将任何内容输出到控制台。这就是我所拥有的:

import edu.umd.cs.findbugs.log.ConsoleLogger;
import edu.umd.cs.findbugs.log.Logger;

public class BugDetector extends CFGDetector {
    private final BugReporter bugReporter;

    public BugDetector(BugReporter bugReporter) {
        this.bugReporter = bugReporter;
    }

    /**
     * Initializes and launches the analysis for a method, and checks the state
     * at the exit node for possible exit-while-locked errors.
     */
    @Override
    protected void visitMethodCFG(MethodDescriptor methodDescriptor, CFG cfg) throws CheckedAnalysisException {

     system.out.println("This should work!!");

    }
}
4

0 回答 0