@@ -1233,13 +1233,13 @@ public StrMatcher getVariablePrefixMatcher() {
12331233 * allowing advanced prefix matches.
12341234 * </p>
12351235 *
1236- * @param prefixMatcher the prefix matcher to use, null ignored
1236+ * @param prefixMatcher the prefix matcher to use, must not be null
12371237 * @return this, to enable chaining
12381238 * @throws IllegalArgumentException if the prefix matcher is null
12391239 */
12401240 public StrSubstitutor setVariablePrefixMatcher (final StrMatcher prefixMatcher ) {
12411241 if (prefixMatcher == null ) {
1242- throw new IllegalArgumentException ("Variable prefix matcher must not be null!" );
1242+ throw new IllegalArgumentException ("Parameter prefixMatcher must not be null!" );
12431243 }
12441244 this .prefixMatcher = prefixMatcher ;
12451245 return this ;
@@ -1302,13 +1302,13 @@ public StrMatcher getVariableSuffixMatcher() {
13021302 * allowing advanced suffix matches.
13031303 * </p>
13041304 *
1305- * @param suffixMatcher the suffix matcher to use, null ignored
1305+ * @param suffixMatcher the suffix matcher to use, must not be null
13061306 * @return this, to enable chaining
13071307 * @throws IllegalArgumentException if the suffix matcher is null
13081308 */
13091309 public StrSubstitutor setVariableSuffixMatcher (final StrMatcher suffixMatcher ) {
13101310 if (suffixMatcher == null ) {
1311- throw new IllegalArgumentException ("Variable suffix matcher must not be null!" );
1311+ throw new IllegalArgumentException ("Parameter suffixMatcher must not be null!" );
13121312 }
13131313 this .suffixMatcher = suffixMatcher ;
13141314 return this ;
0 commit comments