You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@logging.apache.org by ck...@apache.org on 2021/08/30 17:37:33 UTC

[logging-log4j2] branch release-2.x updated: FixedDateFormat.isEquivalent is non-final

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

ckozak pushed a commit to branch release-2.x
in repository https://gitbox.apache.org/repos/asf/logging-log4j2.git


The following commit(s) were added to refs/heads/release-2.x by this push:
     new c6749dd  FixedDateFormat.isEquivalent is non-final
c6749dd is described below

commit c6749ddbebd6af7b9496e653eaa17ecc002333b6
Author: Carter Kozak <ck...@apache.org>
AuthorDate: Mon Aug 30 13:36:16 2021 -0400

    FixedDateFormat.isEquivalent is non-final
---
 .../org/apache/logging/log4j/core/util/datetime/FixedDateFormat.java    | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/log4j-core/src/main/java/org/apache/logging/log4j/core/util/datetime/FixedDateFormat.java b/log4j-core/src/main/java/org/apache/logging/log4j/core/util/datetime/FixedDateFormat.java
index a131975..2f71d4a 100644
--- a/log4j-core/src/main/java/org/apache/logging/log4j/core/util/datetime/FixedDateFormat.java
+++ b/log4j-core/src/main/java/org/apache/logging/log4j/core/util/datetime/FixedDateFormat.java
@@ -714,7 +714,7 @@ public class FixedDateFormat {
      * Returns {@code true} if the old and new date values will result in the same formatted output, {@code false}
      * if results <i>may</i> differ.
      */
-    public final boolean isEquivalent(long oldEpochSecond, int oldNanoOfSecond, long epochSecond, int nanoOfSecond) {
+    public boolean isEquivalent(long oldEpochSecond, int oldNanoOfSecond, long epochSecond, int nanoOfSecond) {
         if (oldEpochSecond == epochSecond) {
             if (secondFractionDigits <= 3) {
                 // Convert nanos to milliseconds for comparison if the format only requires milliseconds.