mirror of https://github.com/apache/jclouds.git
Replaced Instant.now() with System.currentTimeMillis() and removed some unused imports
This commit is contained in:
parent
0e8e07ce38
commit
f0e95ced34
|
@ -53,11 +53,6 @@
|
|||
<artifactId>swift</artifactId>
|
||||
<version>${project.version}</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.jclouds.driver</groupId>
|
||||
<artifactId>jclouds-joda</artifactId>
|
||||
<version>${project.version}</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.jclouds</groupId>
|
||||
<artifactId>jclouds-core</artifactId>
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue