Suppress false positives by adding the suppression annotation @SuppressWarnings("PreferThrowsTag") to the enclosing element.
@SuppressWarnings("PreferThrowsTag")
Get our FREE eBook "10 Programming Tips That Changed Everything" when you subscribe!
No spam. Unsubscribe anytime.