reschke commented on code in PR #2202:
URL: https://github.com/apache/jackrabbit-oak/pull/2202#discussion_r2021190020
##########
oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/index/TrackingCorruptIndexHandler.java:
##########
@@ -168,7 +168,13 @@ public class CorruptIndexInfo {
private final String asyncName;
private final String path;
private final long lastIndexerCycleCount = indexerCycleCount;
- private final Stopwatch watch = Stopwatch.createStarted(new
ClockTicker(clock));
+ private final Stopwatch watch = Stopwatch.createStarted(new Ticker() {
+ @Override
+ public long read() {
+ return TimeUnit.MILLISECONDS.toNanos(clock.millis());
Review Comment:
`getTime()` does no exist in java.time.Clock, and I'd prefer new code to be
generic.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]