From f0e95ced3450e84ad44798a0dbc91398a850d1d2 Mon Sep 17 00:00:00 2001 From: Andrei Savu Date: Tue, 11 Sep 2012 23:16:08 +0300 Subject: [PATCH] Replaced Instant.now() with System.currentTimeMillis() and removed some unused imports --- apis/cloudfiles/pom.xml | 5 ----- .../blobstore/config/CloudFilesBlobStoreContextModule.java | 5 +---- 2 files changed, 1 insertion(+), 9 deletions(-) diff --git a/apis/cloudfiles/pom.xml b/apis/cloudfiles/pom.xml index a067095c2e..708148679c 100644 --- a/apis/cloudfiles/pom.xml +++ b/apis/cloudfiles/pom.xml @@ -53,11 +53,6 @@ swift ${project.version} - - org.jclouds.driver - jclouds-joda - ${project.version} - org.jclouds jclouds-core diff --git a/apis/cloudfiles/src/main/java/org/jclouds/cloudfiles/blobstore/config/CloudFilesBlobStoreContextModule.java b/apis/cloudfiles/src/main/java/org/jclouds/cloudfiles/blobstore/config/CloudFilesBlobStoreContextModule.java index 2c4b8f1544..011a3054cf 100644 --- a/apis/cloudfiles/src/main/java/org/jclouds/cloudfiles/blobstore/config/CloudFilesBlobStoreContextModule.java +++ b/apis/cloudfiles/src/main/java/org/jclouds/cloudfiles/blobstore/config/CloudFilesBlobStoreContextModule.java @@ -41,9 +41,6 @@ import com.google.common.cache.CacheBuilder; import com.google.common.cache.CacheLoader; import com.google.common.cache.LoadingCache; import com.google.inject.Provides; -import org.jclouds.rest.HttpClient; -import org.jclouds.rest.RequestSigner; -import org.joda.time.Instant; /** * @author Adrian Cole @@ -70,7 +67,7 @@ public class CloudFilesBlobStoreContextModule extends SwiftBlobStoreContextModul @Provides @TimeStamp protected Long unixEpochTimestampProvider() { - return Instant.now().getMillis() / 1000; /* in seconds */ + return System.currentTimeMillis() / 1000; /* convert to seconds */ } @Provides