How to find bugs in java using a Find Bug tool

Snehal Musale
1 min readJun 20, 2021

Find bugs is a tool used for java programs to find bugs.
It uses static analysis to find bugs in java code
It has over 200 bug patterns Its a simple and easy to use

How to install it in your eclipse.
Go to help->type find bugs in the find-> choose
find bugs. eclipse plugin 3.0.1 -, and install it restart your IDE.

Right click on your project you have option find bug->find bugs Go to preference's -> java -> Find Bugs select all the settings checkboxes ->ok

you can see all the options in the below of IDE as
Bug Reviews/Bug Info/Bug explorer

If not you can go to window->show view-> other->find bugs ->
and select Bug Reviews/Bug Info/Bug explorer-> ok

As a programmer your code is going to be continuously executed against these over 200 common bug pattern which inspects the java byte code you just need to run the find bug application.

--

--