So once you write a bug detector, try running it on a few projects and sample the reports to see if they are actual bugs or false alarms.
所以在编写bug检测器后,应该试着在新的项目和示例上运行它,以查看它们是真实的bug,还是假警报。
In this installment, you'll develop a detector for a less trivial bug pattern, called RuntimeException capture. (this bug detector is now included in the FindBugs distribution.)
在这一期的文章中,您将开发一个称为RuntimeException capture的更小bug模式的检测器(目前,FindBugs发行版中已包含此bug检测器。)
So for a bug pattern detector to be effective, it must minimize false alarms, preferably no more than 50 percent.
所以对于一个有效的 bug 模式检测器,它必须最小化假警报数量,最好使假情报不超过 50%。
应用推荐