DZone
Thanks for visiting DZone today,
Edit Profile
  • Manage Email Subscriptions
  • How to Post to DZone
  • Article Submission Guidelines
Sign Out View Profile
  • Post an Article
  • Manage My Drafts
Newsletter
Log In / Join
Refcards Trend Reports
Events Video Library
Refcards
Trend Reports

Events

View Events Video Library

Related

  • Setting Up a Local Development Environment With IntelliJ, DevContainers, and Amazon Linux 2023
  • IntelliJ and Java Spring Microservices: Productivity Tips With GitHub Copilot
  • Using Unblocked to Fix a Service That Nobody Owns
  • How To Approach Dependency Management in Java [Video]

Trending

  • Java 27 Makes G1 the Default Everywhere: How to Test Your Small Containers Before You Upgrade
  • Managing Technical Debt in AI-Generated Code
  • Avoiding AI Debt as a Team
  • Beyond the Wall of Charts: How Advanced Observability Displaced the Telemetry Dashboard

Draft This article hasn't been published, so readers can't see it.

In moderation This article is waiting for review, so readers can't see it yet.

Deleted This article has been deleted, so readers can't see it.

  1. DZone
  2. Coding
  3. Tools
  4. IntelliJ IDEA Finds Bugs with FindBugs

IntelliJ IDEA Finds Bugs with FindBugs

With the FindBugs plugin you get extra variety in the available tool-set for Static Code Analysis available in IntelliJ IDEA already.

By 
Vaclav Pech
·
Sep. 25, 09 · Tutorial
Post on X (opens in a new tab) Share on LinkedIn (opens in a new tab)
62.5K Views

Join the DZone community Save articles, join the discussion, and download Refcards and Trend Reports with a free account.

Join for free Already a member? Log in

What? Checking bugs in IntelliJ IDEA with FindBugs? Really? Did JetBrains remove its built-in Static Code Analysis engine, which could search for about 700 different bugs patterns, ranging from Ignored return value, Potential NullPointerException or Assignment to parameter to various sorts of multithreading problems, code smells, dataflow or control flow issues, XML, JavaScript, HTML bugs and such?

Obviously, this is not the case. The contrary is true. With the FindBugs plugin you get extra variety in the available tool-set for Static Code Analysis available in IntelliJ IDEA already:

  • Built-in static code analysis engine
  • Data flow analysis
  • Dependency Structure Matrix Analysis
  • Code Duplicate Detection
  • PMD plugin
  • CheckStyle plugin
  • FindBugs plugin

The FindBugs plugin for IntelliJ IDEA, which you can grab from the default plugin repository, offers smooth FindBugs integration to the developers, who've got used to this powerful analysis tool and need to use it on their projects.

In the article I'd like to show you FindBugs working as a good citizen of the IntelliJ IDEA ecosystem.

Look and feel

Once you install the FindBugs plugin, you'll get a new dedicated tool window in the bottom left corner of your screen.

Using the appropriate buttons you can start code analysis for different scopes of your project. As a result a report is generated into the tool window.

The other buttons will let you change the criteria used to sort the found issues.

Selecting an entry in the report will bring up detailed description of the particular bug together with information about its location in your code. A single click and you grab the bug in your hands.

Enjoy finding bugs and getting them out of your code!

intellij FindBugs

Opinions expressed by DZone contributors are their own.

Related

  • Setting Up a Local Development Environment With IntelliJ, DevContainers, and Amazon Linux 2023
  • IntelliJ and Java Spring Microservices: Productivity Tips With GitHub Copilot
  • Using Unblocked to Fix a Service That Nobody Owns
  • How To Approach Dependency Management in Java [Video]

Partner Resources

×

Comments

Loading comments

The comments didn't load

Please try again in a moment.

Likes

Loading

The next likes didn't load. Please try again.

The likes didn't load

Please try again in a moment.

See who liked this

Log in or join DZone for free to see who liked this article.

Log in Join for free
  • RSS
  • X
  • Facebook

ABOUT US

  • About DZone
  • Support and feedback
  • Community research

ADVERTISE

  • Advertise with DZone

CONTRIBUTE ON DZONE

  • Article Submission Guidelines
  • Become a Contributor
  • Core Program
  • Visit the Writers' Zone

LEGAL

  • Terms of Service
  • Privacy Policy

CONTACT US

  • 3343 Perimeter Hill Drive
  • Suite 215
  • Nashville, TN 37211
  • [email protected]

Let's be friends:

  • RSS
  • X
  • Facebook