Table of contents
a) Install the findbugs plugin
c) Use findbugs for static analysis
compared to dynamic testing. Static analysis has high efficiency and low cost, and is very important for improving product quality.
The following introduces several static analysis plug-ins on elcipse
1. findugs
a) Install the findbugs plugin
1) Click the menu Help -> Eclipse Marketplace
Enter " findbugs " in the search criteria in the pop-up window , click Enter, and click [install] in the search results to install the plug-in
Agree to the license agreement during the installation process, and click [finish] to complete the installation
For the warning can be ignored, click [install anyway]
The system prompts whether to restart. just restart
b) Open the bug window
Click the menu window -> show view -> other, select bug explorer, and open the bug explorer window. Of course, if you need to open buginfo, it is also possible to understand the details of the bug.
c) Use findbugs for static analysis
d) View error messages
For the meaning of the specific error message, you can refer to the following blog
Classification and cause analysis of common errors in Findbugs - Programmer Sought