Detects no-op return
statements in void
functions when they occur at the end
of the method.
Instead of:
public void stuff() {
int x = 5;
return;
}
do:
public void stuff() {
int x = 5;
}
Suppress false positives by adding the suppression annotation @SuppressWarnings("ReturnAtTheEndOfVoidFunction")
to the enclosing element.