This is an automated email from the ASF dual-hosted git repository.

vy pushed a commit to branch 2.x
in repository https://gitbox.apache.org/repos/asf/logging-log4j2.git


The following commit(s) were added to refs/heads/2.x by this push:
     new 75ba0bb1c4 Fix nullability docs in `StrSubstitutor` (#1422)
75ba0bb1c4 is described below

commit 75ba0bb1c4d9dd963b36a02fc558188fb598fcb0
Author: Michael Ernst <[email protected]>
AuthorDate: Tue Apr 11 01:36:54 2023 -0700

    Fix nullability docs in `StrSubstitutor` (#1422)
---
 .../java/org/apache/logging/log4j/core/lookup/StrSubstitutor.java | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git 
a/log4j-core/src/main/java/org/apache/logging/log4j/core/lookup/StrSubstitutor.java
 
b/log4j-core/src/main/java/org/apache/logging/log4j/core/lookup/StrSubstitutor.java
index 7e78d040c7..27dbcfc594 100644
--- 
a/log4j-core/src/main/java/org/apache/logging/log4j/core/lookup/StrSubstitutor.java
+++ 
b/log4j-core/src/main/java/org/apache/logging/log4j/core/lookup/StrSubstitutor.java
@@ -1233,13 +1233,13 @@ public class StrSubstitutor implements 
ConfigurationAware {
      * allowing advanced prefix matches.
      * </p>
      *
-     * @param prefixMatcher  the prefix matcher to use, null ignored
+     * @param prefixMatcher  the prefix matcher to use, must not be null
      * @return this, to enable chaining
      * @throws IllegalArgumentException if the prefix matcher is null
      */
     public StrSubstitutor setVariablePrefixMatcher(final StrMatcher 
prefixMatcher) {
         if (prefixMatcher == null) {
-            throw new IllegalArgumentException("Variable prefix matcher must 
not be null!");
+            throw new IllegalArgumentException("Parameter prefixMatcher must 
not be null!");
         }
         this.prefixMatcher = prefixMatcher;
         return this;
@@ -1302,13 +1302,13 @@ public class StrSubstitutor implements 
ConfigurationAware {
      * allowing advanced suffix matches.
      * </p>
      *
-     * @param suffixMatcher  the suffix matcher to use, null ignored
+     * @param suffixMatcher  the suffix matcher to use, must not be null
      * @return this, to enable chaining
      * @throws IllegalArgumentException if the suffix matcher is null
      */
     public StrSubstitutor setVariableSuffixMatcher(final StrMatcher 
suffixMatcher) {
         if (suffixMatcher == null) {
-            throw new IllegalArgumentException("Variable suffix matcher must 
not be null!");
+            throw new IllegalArgumentException("Parameter suffixMatcher must 
not be null!");
         }
         this.suffixMatcher = suffixMatcher;
         return this;

Reply via email to