All Downloads are FREE. Search and download functionalities are using the official Maven repository.

resources.report.rules.findbugs.RV_EXCEPTION_NOT_THROWN.html Maven / Gradle / Ivy

Go to download

Sanity4J was created to simplify running multiple static code analysis tools on the Java projects. It provides a single entry point to run all the selected tools and produce a consolidated report, which presents all findings in an easily accessible manner.

The newest version!


RV: Exception created and dropped rather than thrown (RV_EXCEPTION_NOT_THROWN)


RV: Exception created and dropped rather than thrown (RV_EXCEPTION_NOT_THROWN)

This code creates an exception (or error) object, but doesn't do anything with it. For example, something like

if (x < 0)
  new IllegalArgumentException("x must be nonnegative");

It was probably the intent of the programmer to throw the created exception:

if (x < 0)
  throw new IllegalArgumentException("x must be nonnegative");




© 2015 - 2024 Weber Informatics LLC | Privacy Policy