From 4f0f75cdb60ab42e58888d6d0ce6a41633a90a93 Mon Sep 17 00:00:00 2001 From: Gary Gregory Date: Tue, 3 Sep 2019 16:18:38 -0400 Subject: [PATCH] No need for exclamations in exception messages. --- .../org/apache/commons/lang3/text/StrSubstitutor.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main/java/org/apache/commons/lang3/text/StrSubstitutor.java b/src/main/java/org/apache/commons/lang3/text/StrSubstitutor.java index b8c885ec8..9222e3b13 100644 --- a/src/main/java/org/apache/commons/lang3/text/StrSubstitutor.java +++ b/src/main/java/org/apache/commons/lang3/text/StrSubstitutor.java @@ -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)); }