Skip to content

Correct documentation about nullness #1422

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 11, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -1233,13 +1233,13 @@ public StrMatcher getVariablePrefixMatcher() {
* 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;
Expand Down Expand Up @@ -1302,13 +1302,13 @@ public StrMatcher getVariableSuffixMatcher() {
* 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;
Expand Down