Skip to content

Commit

Permalink
Remove breaking change in log4j-mongodb
Browse files Browse the repository at this point in the history
  • Loading branch information
ppkarwasz committed Nov 2, 2024
1 parent f1d1d3a commit d2e8ad1
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 6 deletions.
2 changes: 0 additions & 2 deletions log4j-mongodb/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,6 @@
<!-- Dependency versions -->
<mongodb.version>5.2.0</mongodb.version>
<slf4j2.version>2.0.16</slf4j2.version>
<!-- Using bnd.baseline.skip for weird complaints; why are we running this at all for an appender impl? -->
<bnd.baseline.skip>true</bnd.baseline.skip>
</properties>
<dependencyManagement>
<dependencies>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,12 +53,19 @@ private MongoDbProvider() {
}

/**
* Creates a new builder.
*
* @return a new builder.
* @deprecated since 2.25.0 use the typesafe {@link #newMongoDbBuilder()} method.
*/
@Deprecated
@SuppressWarnings("unchecked")
public static <B extends MongoDb4Provider.Builder<B>> B newBuilder() {
return (B) newMongoDbBuilder();
}

/**
* Creates a builder for the MongoDB plugin
*/
@PluginBuilderFactory
public static Builder newBuilder() {
public static Builder newMongoDbBuilder() {
return new Builder();
}
}

0 comments on commit d2e8ad1

Please sign in to comment.