Revert "Fix expire time of cache using TimeUnits"

Master was actually compatible with Gerrit master and stable-2.16
and the fix wasn't needed after all.

This reverts commit 3816915fc0e882d8391f0dc62ef8f69b72aca91e.

Change-Id: Iaa39a7db734e391652d729a6ed2e70f37913540d
diff --git a/src/main/java/com/googlesource/gerrit/plugins/manager/PluginsCentralCache.java b/src/main/java/com/googlesource/gerrit/plugins/manager/PluginsCentralCache.java
index 1c490e0..55fa815 100644
--- a/src/main/java/com/googlesource/gerrit/plugins/manager/PluginsCentralCache.java
+++ b/src/main/java/com/googlesource/gerrit/plugins/manager/PluginsCentralCache.java
@@ -21,9 +21,9 @@
 import com.google.inject.name.Named;
 import com.googlesource.gerrit.plugins.manager.PluginsCentralLoader.ListKey;
 import com.googlesource.gerrit.plugins.manager.repository.PluginInfo;
+import java.time.Duration;
 import java.util.Collection;
 import java.util.concurrent.ExecutionException;
-import java.util.concurrent.TimeUnit;
 
 public class PluginsCentralCache {
 
@@ -49,7 +49,7 @@
                 PluginsCentralCache.PLUGINS_LIST_CACHE_NAME,
                 ListKey.class,
                 new TypeLiteral<Collection<PluginInfo>>() {})
-            .expireAfterWrite(1, TimeUnit.DAYS)
+            .expireAfterWrite(Duration.ofDays(1))
             .loader(PluginsCentralLoader.class);
 
         bind(PluginsCentralCache.class);