2、在Eclipse項目中,滑鼠右擊項目、目錄或代碼,在彈出菜單中選擇Find Bugs->Find Bugs,會開始掃描選中的代碼,同時會在各個包和類上标記可能存在問題的個數。
3、掃描結束後,需要打開Find Bugs Explorer檢視結果,打開方法:菜單Window->Show View->Other...,找到Find Bugs目錄後選擇裡邊的Bug Explorer。
本文轉自 zl1030 51CTO部落格,原文連結:http://blog.51cto.com/zl1030/1722746