This is an automated email from the ASF dual-hosted git repository.

rgoers pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/logging-log4j2.git


The following commit(s) were added to refs/heads/master by this push:
     new 7f74500  LOG4J2-2588 - Mark timeMillis as read only
7f74500 is described below

commit 7f74500c04f507b55d3558c86923317fdc65514c
Author: Ralph Goers <[email protected]>
AuthorDate: Sun Apr 19 20:59:01 2020 -0700

    LOG4J2-2588 - Mark timeMillis as read only
---
 .../main/java/org/apache/logging/log4j/jackson/LogEventJsonMixIn.java   | 2 +-
 .../org/apache/logging/log4j/jackson/LogEventWithContextListMixIn.java  | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git 
a/log4j-layout-jackson/src/main/java/org/apache/logging/log4j/jackson/LogEventJsonMixIn.java
 
b/log4j-layout-jackson/src/main/java/org/apache/logging/log4j/jackson/LogEventJsonMixIn.java
index 5ffab97..034c40a 100644
--- 
a/log4j-layout-jackson/src/main/java/org/apache/logging/log4j/jackson/LogEventJsonMixIn.java
+++ 
b/log4j-layout-jackson/src/main/java/org/apache/logging/log4j/jackson/LogEventJsonMixIn.java
@@ -119,7 +119,7 @@ public abstract class LogEventJsonMixIn /* extends 
AbstractLogEventMixIn */ impl
     @Override
     public abstract ThrowableProxy getThrownProxy();
 
-    @JsonProperty(JsonConstants.ELT_TIME_MILLIS)
+    @JsonProperty(value = JsonConstants.ELT_TIME_MILLIS, access = 
JsonProperty.Access.READ_ONLY)
     @Override
     public abstract long getTimeMillis();
 
diff --git 
a/log4j-layout-jackson/src/main/java/org/apache/logging/log4j/jackson/LogEventWithContextListMixIn.java
 
b/log4j-layout-jackson/src/main/java/org/apache/logging/log4j/jackson/LogEventWithContextListMixIn.java
index 6c253e2..2c26489 100644
--- 
a/log4j-layout-jackson/src/main/java/org/apache/logging/log4j/jackson/LogEventWithContextListMixIn.java
+++ 
b/log4j-layout-jackson/src/main/java/org/apache/logging/log4j/jackson/LogEventWithContextListMixIn.java
@@ -103,7 +103,7 @@ abstract class LogEventWithContextListMixIn implements 
LogEvent {
     @Override
     public abstract ThrowableProxy getThrownProxy();
 
-    @JsonProperty(JsonConstants.ELT_TIME_MILLIS)
+    @JsonProperty(value = JsonConstants.ELT_TIME_MILLIS, access = 
JsonProperty.Access.READ_ONLY)
     @Override
     public abstract long getTimeMillis();
 

Reply via email to