You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by gg...@apache.org on 2019/09/03 20:18:41 UTC
[commons-lang] branch master updated: No need for exclamations in
exception messages.
This is an automated email from the ASF dual-hosted git repository.
ggregory pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-lang.git
The following commit(s) were added to refs/heads/master by this push:
new 4f0f75c No need for exclamations in exception messages.
4f0f75c is described below
commit 4f0f75cdb60ab42e58888d6d0ce6a41633a90a93
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Tue Sep 3 16:18:38 2019 -0400
No need for exclamations in exception messages.
---
src/main/java/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 b8c885e..9222e3b 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 class StrSubstitutor {
*/
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 class StrSubstitutor {
*/
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 class StrSubstitutor {
*/
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 class StrSubstitutor {
*/
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));
}