setUp
but does not invoke super.setUp()
JAVA-S0337This 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-S0001The 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.
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.
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.