Skip to content

Commit 2c35ef8

Browse files
committed
Removed 'isValid()' from RegexFilter#Builder() - validation API has not yet been merged to main (apache#3086)
1 parent 5a0aee1 commit 2c35ef8

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

log4j-core/src/main/java/org/apache/logging/log4j/core/filter/RegexFilter.java

-7
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,6 @@ public Result filter(
133133
return (useRawMessage || params == null || params.length == 0)
134134
? filter(msg)
135135
: filter(ParameterizedMessage.format(msg, params));
136-
137136
}
138137

139138
/**
@@ -311,11 +310,6 @@ public Builder setUseRawMsg(final boolean useRawMsg) {
311310
return this;
312311
}
313312

314-
/** {@inheritDoc} */
315-
public boolean isValid() {
316-
return (Strings.isNotEmpty(this.regex));
317-
}
318-
319313
/**
320314
* Builds and returns a {@link RegexFilter} instance configured by this builder.
321315
*
@@ -339,5 +333,4 @@ public boolean isValid() {
339333
}
340334
}
341335
}
342-
343336
}

0 commit comments

Comments
 (0)