Bonjour,

J'ai un message indiquer par CheckStyle que je ne comprends pas !

Avec le code suivant :

Code : Sélectionner tout - Visualiser dans une fenêtre à part
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 :
Redundant Throws: Clause throws redondante : PatternSyntaxException' est une exception non vérifiée.
Qu'est-ce qui ne va pas avec mon throws PatternSyntaxException ?