// control: this class should generate a warning classFinally
{ int m1(int i) { try { return 0;
} finally { thrownew IllegalArgumentException();
}
}
}
// tests: the warnings that would otherwise be generated should all be suppressed
@SuppressWarnings("finally") class Finally1
{ int m1(int i) { try { return 0;
} finally { thrownew IllegalArgumentException();
}
}
}
class Finally2
{
@SuppressWarnings("finally") class Bar { int m1(int i) { try { return 0;
} finally { thrownew IllegalArgumentException();
}
}
}
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.