resources.report.rules.findbugs.RV_EXCEPTION_NOT_THROWN.html Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of sanity4j Show documentation
Show all versions of sanity4j Show documentation
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.
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