Clause throws redondante ?
Bonjour,
J'ai un message indiquer par CheckStyle que je ne comprends pas !
Avec le code suivant :
Code:
1 2 3 4 5 6 7
| public final void setCharDeniedPattern(final String charAcceptedPattern) throws PatternSyntaxException {
try {
this.charDeniedPattern = Pattern.compile(charAcceptedPattern);
} catch (PatternSyntaxException e) {
throw e;
}
} |
Il me dit :
Citation:
Redundant Throws: Clause throws redondante : PatternSyntaxException' est une exception non vérifiée.
Qu'est-ce qui ne va pas avec mon throws PatternSyntaxException ?