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
Over 2 million developers have joined DZone.
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

  • Catching Data Perimeter Drift Before It Reaches Production
  • Beyond Partitioning and Z-Order: A Deep Dive into Liquid Clustering for Unity Catalog Managed Tables
  • One Query, Four GPUs: Tracing a Distributed Training Stall Across Nodes
  • Dear Micromanager: Your Distrust Has a Job; It’s Just Not the One You’re Doing
  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 user avatar
Vaclav Pech
·
Sep. 25, 09 · Tutorial
Likes (2)
Comment
Save
Tweet
Share
62.3K Views

Join the DZone community and get the full member experience.

Join For Free

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

The likes didn't load as expected. Please refresh the page and try again.

  • 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