This is an automated email from the ASF dual-hosted git repository.
vy 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 0ff6a6e Rephrase comment in SystemClock. (#521)
0ff6a6e is described below
commit 0ff6a6ef1f77415293e745c1d2ed77e4388e16ca
Author: Stanislav Kashirin <[email protected]>
AuthorDate: Sat Jun 19 17:33:30 2021 +0300
Rephrase comment in SystemClock. (#521)
---
.../java/org/apache/logging/log4j/core/time/internal/SystemClock.java | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git
a/log4j-core/src/main/java/org/apache/logging/log4j/core/time/internal/SystemClock.java
b/log4j-core/src/main/java/org/apache/logging/log4j/core/time/internal/SystemClock.java
index 59823bf..d09537c 100644
---
a/log4j-core/src/main/java/org/apache/logging/log4j/core/time/internal/SystemClock.java
+++
b/log4j-core/src/main/java/org/apache/logging/log4j/core/time/internal/SystemClock.java
@@ -27,9 +27,11 @@ import org.apache.logging.log4j.util.PropertiesUtil;
* Implementation of the {@code Clock} interface that returns the system time.
* @since 2.11.0
*/
-// Precise clock is not implemented because the instant() method in the init
method is not garbage free.
public final class SystemClock implements Clock, PreciseClock {
+ /**
+ * The precise clock is not enabled by default, since access to it is not
garbage free.
+ */
private static final boolean USE_PRECISE_CLOCK =
PropertiesUtil.getProperties()
.getBooleanProperty("log4j2.usePreciseClock", false);
/**