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:58 UTC
[logging-log4j2] branch master updated:
FixedDateFormat.isEquivalent is non-final
This is an automated email from the ASF dual-hosted git repository.
ckozak 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 bc9d56f FixedDateFormat.isEquivalent is non-final
bc9d56f is described below
commit bc9d56fe1163b3a1d0413606bd409cb6f4866ee5
Author: Carter Kozak <ck...@apache.org>
AuthorDate: Mon Aug 30 13:36:16 2021 -0400
FixedDateFormat.isEquivalent is non-final
---
.../apache/logging/log4j/core/time/internal/format/FixedDateFormat.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/log4j-core/src/main/java/org/apache/logging/log4j/core/time/internal/format/FixedDateFormat.java b/log4j-core/src/main/java/org/apache/logging/log4j/core/time/internal/format/FixedDateFormat.java
index 3198c90..ba7e5c9 100644
--- a/log4j-core/src/main/java/org/apache/logging/log4j/core/time/internal/format/FixedDateFormat.java
+++ b/log4j-core/src/main/java/org/apache/logging/log4j/core/time/internal/format/FixedDateFormat.java
@@ -724,7 +724,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.