Move TimeUtil into own package and let it have its own java_library

This further reduces the dependencies for the logging/ package as now it
no longer needs to depend on java/com/google/gerrit/common:server, which
is kind of a large package.

The @GwtIncompatible annatation is removed from TimeUtil since this
class is no longer in a package that is shared with GWT.

Change-Id: I9c1c84d2b8feffddb6f8e955035a6a48f9f248c3
Signed-off-by: Edwin Kempin <ekempin@google.com>
This commit is contained in:
Edwin Kempin
2018-09-18 17:55:51 +02:00
parent 0a7075fea6
commit ad19626f94
144 changed files with 160 additions and 125 deletions

View File

@@ -17,7 +17,7 @@ package com.google.gerrit.testing;
import static com.google.common.base.Preconditions.checkState;
import static java.util.concurrent.TimeUnit.MILLISECONDS;
import com.google.gerrit.common.TimeUtil;
import com.google.gerrit.server.util.time.TimeUtil;
import java.sql.Timestamp;
import java.time.Instant;
import java.time.LocalDateTime;
@@ -51,7 +51,7 @@ public class TestTimeUtil {
}
/**
* Set the clock step used by {@link com.google.gerrit.common.TimeUtil}.
* Set the clock step used by {@link com.google.gerrit.server.util.time.TimeUtil}.
*
* @param clockStep amount to increment clock by on each lookup.
* @param clockStepUnit time unit for {@code clockStep}.