DeepSource
Dashboard Resources Pricing Discover Directory Log in

Run your first analysis.

Find thousands of code security and quality issues in your codebase, before they end up in production.

Start now
All analyzers Java
Java

Java

By DeepSource

Use Analyzer
Docs
Discuss
JUnit test class overrides setUp but does not invoke super.setUp() JAVA-S0337
Bug risk

This class inherits from JUnit's TestCase class and implements the setUp() method. The setUp method should call super.setUp(), but doesn't.

@OverridingMethodsMustInvokeSuper annotation in super method is ignored by overriding method JAVA-S0001
Bug risk

The super method is annotated with @OverridingMethodsMustInvokeSuper, but the overriding method isn't calling the super method.

A call has been made to an unsupported method JAVA-S0013
Bug risk

A call has been made to an unsupported method.

Attempt to close a null value detected JAVA-S0250
Bug risk

close() is being invoked on a value that is always null. If this statement is executed, a null pointer exception will occur. Another serious issue is the fact that the resource that is meant to be closed is not closed.

Loops must terminate by some means JAVA-S0024
Bug risk

This loop doesn't seem to have a way to terminate (other than by perhaps throwing an exception).

It is better to explicitly break out of the loop instead of relying on a possibly unclear exit condition.