ReturnAtTheEndOfVoidFunction
`return;` is unnecessary at the end of void methods and constructors.

Severity
WARNING

The problem

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;
}

Suppression

Suppress false positives by adding the suppression annotation @SuppressWarnings("ReturnAtTheEndOfVoidFunction") to the enclosing element.