Skip to content

Commit 3c44943

Browse files
JWT007ppkarwasz
authored andcommitted
Added changelog entry and fixed spotless errors (#3369)
+ properly delegated from deprecated method to new method + updated affected package-info versions for baseline
1 parent 7bccbed commit 3c44943

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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -217,8 +217,7 @@ public Filter getFilter() {
217217
*/
218218
@Deprecated
219219
public B withtFilter(final Filter filter) {
220-
this.filter = filter;
221-
return asBuilder();
220+
return withFilter(filter);
222221
}
223222

224223
public B withFilter(final Filter filter) {
@@ -937,8 +936,8 @@ public Filter getFilter() {
937936
}
938937

939938
/**
940-
* @deprecated Use {@link #withFilter(Filter)} instead
941-
*/
939+
* @deprecated Use {@link #withFilter(Filter)} instead
940+
*/
942941
@Deprecated
943942
public B withtFilter(final Filter filter) {
944943
this.filter = filter;

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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 1 addition & 1 deletion
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;
Lines changed: 11 additions & 0 deletions
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)