You are viewing a plain text version of this content. The canonical link for it is here.
Posted to oak-commits@jackrabbit.apache.org by re...@apache.org on 2025/04/01 08:15:55 UTC

(jackrabbit-oak) branch OAK-11622 created (now 4e081f8b6e)

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

reschke pushed a change to branch OAK-11622
in repository https://gitbox.apache.org/repos/asf/jackrabbit-oak.git


      at 4e081f8b6e OAK-11622: Clock improvements - clarify relation to JDK clock

This branch includes the following new commits:

     new 4e081f8b6e OAK-11622: Clock improvements - clarify relation to JDK clock

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



(jackrabbit-oak) 01/01: OAK-11622: Clock improvements - clarify relation to JDK clock

Posted by re...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

reschke pushed a commit to branch OAK-11622
in repository https://gitbox.apache.org/repos/asf/jackrabbit-oak.git

commit 4e081f8b6e980423756885e0e1e87778035674ba
Author: Julian Reschke <re...@apache.org>
AuthorDate: Tue Apr 1 09:15:36 2025 +0100

    OAK-11622: Clock improvements - clarify relation to JDK clock
---
 .../src/main/java/org/apache/jackrabbit/oak/stats/Clock.java       | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/oak-core-spi/src/main/java/org/apache/jackrabbit/oak/stats/Clock.java b/oak-core-spi/src/main/java/org/apache/jackrabbit/oak/stats/Clock.java
index a19c60e595..0805b9bb20 100644
--- a/oak-core-spi/src/main/java/org/apache/jackrabbit/oak/stats/Clock.java
+++ b/oak-core-spi/src/main/java/org/apache/jackrabbit/oak/stats/Clock.java
@@ -29,7 +29,12 @@ import java.util.concurrent.atomic.AtomicLong;
 /**
  * Mechanism for keeping track of time at millisecond accuracy.
  * <p>
- * As of Oak 1.20, this extends from {@link java.time.Clock}.
+ * This extends from {@link java.time.Clock}. Consumers of clocks
+ * are advised to use that interface, unless the additional features
+ * of this class are needed.
+ * <p>
+ * Note that implementations of this class in general do not support
+ * the timezone related features of {@linkplain java.time.Clock}.
  */
 public abstract class Clock extends java.time.Clock {