Skip to content

Commit 235f392

Browse files
committed
Port log4j-mongodb4 changes from 2.x
1 parent 1db195d commit 235f392

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed

log4j-mongodb4/pom.xml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@
2828
<name>Apache Log4j MongoDB 4</name>
2929
<description>MongoDB appender for Log4j using the MongoDB 4 driver API.</description>
3030
<properties>
31-
<log4jParentDir>${basedir}/..</log4jParentDir>
3231

3332
<!--
3433
~ OSGi and JPMS options
@@ -77,10 +76,6 @@
7776
<groupId>junit</groupId>
7877
<artifactId>junit</artifactId>
7978
</exclusion>
80-
<exclusion>
81-
<groupId>org.junit.vintage</groupId>
82-
<artifactId>junit-vintage-engine</artifactId>
83-
</exclusion>
8479
</exclusions>
8580
</dependency>
8681
<dependency>
@@ -112,6 +107,7 @@
112107

113108
<build>
114109
<plugins>
110+
115111
<plugin>
116112
<groupId>org.apache.maven.plugins</groupId>
117113
<artifactId>maven-compiler-plugin</artifactId>
@@ -125,6 +121,7 @@
125121
</annotationProcessorPaths>
126122
</configuration>
127123
</plugin>
124+
128125
<plugin>
129126
<groupId>org.apache.maven.plugins</groupId>
130127
<artifactId>maven-surefire-plugin</artifactId>
@@ -145,6 +142,8 @@
145142
</dependency>
146143
</dependencies>
147144
</plugin>
145+
148146
</plugins>
149147
</build>
148+
150149
</project>

log4j-mongodb4/src/main/java/org/apache/logging/log4j/mongodb4/MongoDb4DocumentObject.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,12 @@
2525
* {@link Document}.
2626
*/
2727
public final class MongoDb4DocumentObject implements NoSqlObject<Document> {
28+
2829
private final Document document;
2930

31+
/**
32+
* Constructs a new instance.
33+
*/
3034
public MongoDb4DocumentObject() {
3135
this.document = new Document();
3236
}

0 commit comments

Comments
 (0)