Quote of the Day


Quotes and sayings

Archives

Categories

  • 27Mar

    Find Bugs is a free software (distributed under the terms of Lesser GNU Public License) to help developers to find potential bugs in the java code. 

    You can get FindBugs here. There are several options to run it: GUI, ant task or Eclipse plugin.

    FindBugs GUI – Steps:

    1. Create Project. Add classes, jars or folder containing your java classes.
    2. Running the Analysis. Click on Finish button to analyze the selected classes.
    3. Verify the Results. You will get a list of potential bugs detected.
    4. You can save/open the project.

    What type of bugs you can find?

    Probable bug, a bad practice or code that is confusing (dodgy).

    Bugs descriptions:

    Method might ignore exception.
    Comparison of String parameter using == or !=
    Class defines hashCode() and uses Object.equals()
    Field names should start with a lower case letter
    etc …

    More useful information in the Manual.

    Find Bugs has been used in a lot of projects, if you don´t, what are you wainting for: It´s free, you can have the Eclipse plug-in and run on demand or you can integrate it in your build.

    Posted by Moctezuma @ 3.29 am

    Tags: ,

One Response

WP_Cloudy

Leave a Comment

Please note: Comment moderation is enabled and may delay your comment. There is no need to resubmit your comment.