TryFailRefactoring
Prefer assertThrows to try/fail

Severity
SUGGESTION
Tags
Refactoring

Suppression

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