Bonjour,
J'ai un message indiquer par CheckStyle que je ne comprends pas !
Avec le code suivant :
Il me dit :
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; } }
Qu'est-ce qui ne va pas avec mon throws PatternSyntaxException ?Redundant Throws: Clause throws redondante : PatternSyntaxException' est une exception non vérifiée.
Partager