@@ -1235,13 +1235,13 @@ public StrMatcher getVariablePrefixMatcher() {
1235
1235
* allowing advanced prefix matches.
1236
1236
* </p>
1237
1237
*
1238
- * @param prefixMatcher the prefix matcher to use, null ignored
1238
+ * @param prefixMatcher the prefix matcher to use, must not be null
1239
1239
* @return this, to enable chaining
1240
1240
* @throws IllegalArgumentException if the prefix matcher is null
1241
1241
*/
1242
1242
public StrSubstitutor setVariablePrefixMatcher (final StrMatcher prefixMatcher ) {
1243
1243
if (prefixMatcher == null ) {
1244
- throw new IllegalArgumentException ("Variable prefix matcher must not be null!" );
1244
+ throw new IllegalArgumentException ("Parameter prefixMatcher must not be null!" );
1245
1245
}
1246
1246
this .prefixMatcher = prefixMatcher ;
1247
1247
return this ;
@@ -1304,13 +1304,13 @@ public StrMatcher getVariableSuffixMatcher() {
1304
1304
* allowing advanced suffix matches.
1305
1305
* </p>
1306
1306
*
1307
- * @param suffixMatcher the suffix matcher to use, null ignored
1307
+ * @param suffixMatcher the suffix matcher to use, must not be null
1308
1308
* @return this, to enable chaining
1309
1309
* @throws IllegalArgumentException if the suffix matcher is null
1310
1310
*/
1311
1311
public StrSubstitutor setVariableSuffixMatcher (final StrMatcher suffixMatcher ) {
1312
1312
if (suffixMatcher == null ) {
1313
- throw new IllegalArgumentException ("Variable suffix matcher must not be null!" );
1313
+ throw new IllegalArgumentException ("Parameter suffixMatcher must not be null!" );
1314
1314
}
1315
1315
this .suffixMatcher = suffixMatcher ;
1316
1316
return this ;
0 commit comments