Replaced Instant.now() with System.currentTimeMillis() and removed some unused imports

This commit is contained in:
Andrei Savu 2012-09-11 23:16:08 +03:00
parent 0e8e07ce38
commit f0e95ced34
2 changed files with 1 additions and 9 deletions

View File

@ -53,11 +53,6 @@
<artifactId>swift</artifactId> <artifactId>swift</artifactId>
<version>${project.version}</version> <version>${project.version}</version>
</dependency> </dependency>
<dependency>
<groupId>org.jclouds.driver</groupId>
<artifactId>jclouds-joda</artifactId>
<version>${project.version}</version>
</dependency>
<dependency> <dependency>
<groupId>org.jclouds</groupId> <groupId>org.jclouds</groupId>
<artifactId>jclouds-core</artifactId> <artifactId>jclouds-core</artifactId>

View File

@ -41,9 +41,6 @@ import com.google.common.cache.CacheBuilder;
import com.google.common.cache.CacheLoader; import com.google.common.cache.CacheLoader;
import com.google.common.cache.LoadingCache; import com.google.common.cache.LoadingCache;
import com.google.inject.Provides; import com.google.inject.Provides;
import org.jclouds.rest.HttpClient;
import org.jclouds.rest.RequestSigner;
import org.joda.time.Instant;
/** /**
* @author Adrian Cole * @author Adrian Cole
@ -70,7 +67,7 @@ public class CloudFilesBlobStoreContextModule extends SwiftBlobStoreContextModul
@Provides @Provides
@TimeStamp @TimeStamp
protected Long unixEpochTimestampProvider() { protected Long unixEpochTimestampProvider() {
return Instant.now().getMillis() / 1000; /* in seconds */ return System.currentTimeMillis() / 1000; /* convert to seconds */
} }
@Provides @Provides