No need for exclamations in exception messages.

This commit is contained in:
Gary Gregory 2019-09-03 16:18:38 -04:00
parent 25d89e78f0
commit 4f0f75cdb6
1 changed files with 4 additions and 4 deletions

View File

@ -984,7 +984,7 @@ public StrMatcher getVariablePrefixMatcher() {
*/
public StrSubstitutor setVariablePrefixMatcher(final StrMatcher prefixMatcher) {
if (prefixMatcher == null) {
throw new IllegalArgumentException("Variable prefix matcher must not be null!");
throw new IllegalArgumentException("Variable prefix matcher must not be null.");
}
this.prefixMatcher = prefixMatcher;
return this;
@ -1016,7 +1016,7 @@ public StrSubstitutor setVariablePrefix(final char prefix) {
*/
public StrSubstitutor setVariablePrefix(final String prefix) {
if (prefix == null) {
throw new IllegalArgumentException("Variable prefix must not be null!");
throw new IllegalArgumentException("Variable prefix must not be null.");
}
return setVariablePrefixMatcher(StrMatcher.stringMatcher(prefix));
}
@ -1049,7 +1049,7 @@ public StrMatcher getVariableSuffixMatcher() {
*/
public StrSubstitutor setVariableSuffixMatcher(final StrMatcher suffixMatcher) {
if (suffixMatcher == null) {
throw new IllegalArgumentException("Variable suffix matcher must not be null!");
throw new IllegalArgumentException("Variable suffix matcher must not be null.");
}
this.suffixMatcher = suffixMatcher;
return this;
@ -1081,7 +1081,7 @@ public StrSubstitutor setVariableSuffix(final char suffix) {
*/
public StrSubstitutor setVariableSuffix(final String suffix) {
if (suffix == null) {
throw new IllegalArgumentException("Variable suffix must not be null!");
throw new IllegalArgumentException("Variable suffix must not be null.");
}
return setVariableSuffixMatcher(StrMatcher.stringMatcher(suffix));
}