TryFailRefactoring
Prefer assertThrows to try/fail

Severity
SUGGESTION
Tags
Refactoring
Has Fix?
REQUIRES_HUMAN_ATTENTION

The problem

Suppression

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