From: David ‘Bombe’ Roden Date: Wed, 11 Jun 2014 04:09:49 +0000 (+0200) Subject: Use static import for currentTimeMillis(). X-Git-Tag: 0.9-rc1^2~3^2~248 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=5e4d8d47d56925e1585ac9e8f0055ea74c77ec82;p=Sone.git Use static import for currentTimeMillis(). --- diff --git a/src/main/java/net/pterodactylus/sone/core/SoneInserter.java b/src/main/java/net/pterodactylus/sone/core/SoneInserter.java index 51882e9..59524b3 100644 --- a/src/main/java/net/pterodactylus/sone/core/SoneInserter.java +++ b/src/main/java/net/pterodactylus/sone/core/SoneInserter.java @@ -18,6 +18,7 @@ package net.pterodactylus.sone.core; import static com.google.common.base.Preconditions.checkArgument; +import static java.lang.System.currentTimeMillis; import static net.pterodactylus.sone.data.Album.NOT_EMPTY; import java.io.InputStreamReader; @@ -235,11 +236,11 @@ public class SoneInserter extends AbstractService { boolean success = false; try { sone.setStatus(SoneStatus.inserting); - long insertTime = System.currentTimeMillis(); + long insertTime = currentTimeMillis(); insertInformation.setTime(insertTime); eventBus.post(new SoneInsertingEvent(sone)); FreenetURI finalUri = freenetInterface.insertDirectory(insertInformation.getInsertUri(), insertInformation.generateManifestEntries(), "index.html"); - eventBus.post(new SoneInsertedEvent(sone, System.currentTimeMillis() - insertTime)); + eventBus.post(new SoneInsertedEvent(sone, currentTimeMillis() - insertTime)); /* at this point we might already be stopped. */ if (shouldStop()) { /* if so, bail out, don’t change anything. */