Skip to content

Commit a23a1a8

Browse files
committed
Added changelog entry and fixed spotless errors (apache#3369)
+ properly delegated from deprecated method to new method + updated affected package-info versions for baseline
1 parent 79f00f1 commit a23a1a8

File tree

5 files changed

+17
-7
lines changed

5 files changed

+17
-7
lines changed

log4j-core/src/main/java/org/apache/logging/log4j/core/async/package-info.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
* Provides Asynchronous Logger classes and interfaces for low-latency logging.
1919
*/
2020
@Export
21-
@Version("2.24.1")
21+
@Version("2.25.0")
2222
package org.apache.logging.log4j.core.async;
2323

2424
import org.osgi.annotation.bundle.Export;

log4j-core/src/main/java/org/apache/logging/log4j/core/config/LoggerConfig.java

+3-4
Original file line numberDiff line numberDiff line change
@@ -218,8 +218,7 @@ public Filter getFilter() {
218218
*/
219219
@Deprecated
220220
public B withtFilter(final Filter filter) {
221-
this.filter = filter;
222-
return asBuilder();
221+
return withFilter(filter);
223222
}
224223

225224
public B withFilter(final Filter filter) {
@@ -946,8 +945,8 @@ public Filter getFilter() {
946945
}
947946

948947
/**
949-
* @deprecated Use {@link #withFilter(Filter)} instead
950-
*/
948+
* @deprecated Use {@link #withFilter(Filter)} instead
949+
*/
951950
@Deprecated
952951
public B withtFilter(final Filter filter) {
953952
this.filter = filter;

log4j-core/src/main/java/org/apache/logging/log4j/core/config/package-info.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
* Configuration of Log4j 2.
1919
*/
2020
@Export
21-
@Version("2.24.1")
21+
@Version("2.25.0")
2222
package org.apache.logging.log4j.core.config;
2323

2424
import org.osgi.annotation.bundle.Export;

log4j-core/src/main/java/org/apache/logging/log4j/core/package-info.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
* Implementation of Log4j 2.
1919
*/
2020
@Export
21-
@Version("2.24.2")
21+
@Version("2.25.0")
2222
package org.apache.logging.log4j.core;
2323

2424
import org.osgi.annotation.bundle.Export;
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<entry xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3+
xmlns="https://logging.apache.org/xml/ns"
4+
xsi:schemaLocation="https://logging.apache.org/xml/ns https://logging.apache.org/xml/ns/log4j-changelog-0.xsd"
5+
type="added">
6+
<issue id="3369" link="https://github.com/apache/logging-log4j2/issues/3369"/>
7+
<description format="asciidoc">
8+
Fixed typo in "LoggerConfig.RootLogger.Builder#withtFilter(...)" method.
9+
Created new corrected 'withFilter()' method and deprecated old method.
10+
</description>
11+
</entry>

0 commit comments

Comments
 (0)