实现扫描检测器要做更多工作,但是它们能检测更一般类型的问题。
The scanning detectors are more work to implement, but they are also more general in the sort of problems they can detect.
所有字节码扫描检测器都基于visitor模式,FindBugs实现了这个模式。
All bytecode scanning detectors are based on the visitor pattern, which FindBugs implements.
我们的检测器只需要在字节码扫描阶段维护状态,因为我们查找的是方法级的问题。
Our detector needs to maintain state only during the byte code scanning phase, because we're looking for a method-level problem.
应用推荐