Jump statements (return, break and continue) and throw expressions move control flow out of the current code block. Typically, any statements in a block that come after a jump or throw are simply wasted keystrokes lying in wait to confuse the unwary.

Noncompliant Code Example

fun(a) {
  var i = 10;
  return i + a;
  i++;             // Noncompliant; this is never executed
}

Compliant Solution

int fun(int a) {
  int i = 10;
  return i + a;
}

See