Improvement of program return value detection mode based on FindBugs
Lyu Zengyua, Pla Military · Journal of PLA University of Science and Technology · 2015
To find possible potential errors that may exist in the code using static analysis FindBugs,a typical static code analysis tool was introduced and its operation mechanism in Return Defect Pattern analyzed to find its shortage.Due to the shortage of the bug pattern,the source of FindBugs was analyzed and modified to detect the detected code,with the finding that the modified tool can detect user-defined method return value and shows some message about the bugs.The results of analysis indicafe that the modified tool can detect the problem of ignoring user-defined method return value and can avoid potential bugs and improve the quality of code to some extent.