Skip to content

Commit 5a0aee1

Browse files
committed
Reverted cherry picked change to legacy Builder. (apache#3086)
1 parent 0d348a6 commit 5a0aee1

File tree

1 file changed

+3
-6
lines changed
  • log4j-core/src/main/java/org/apache/logging/log4j/core/util

1 file changed

+3
-6
lines changed

log4j-core/src/main/java/org/apache/logging/log4j/core/util/Builder.java

+3-6
Original file line numberDiff line numberDiff line change
@@ -45,11 +45,8 @@ public interface Builder<T> extends Supplier<T> {
4545
*/
4646
T build();
4747

48-
/**
49-
* Validates that the builder is properly configured to build.
50-
* @return {@code true} if the builder configuration is valid; otherwise, {@code false}
51-
*/
52-
default boolean isValid() {
53-
return PluginBuilder.validateFields(this, getErrorPrefix());
48+
@Override
49+
default T get() {
50+
return build();
5451
}
5552
}

0 commit comments

Comments
 (0)