mirror of https://github.com/apache/jclouds.git
Address BindingToUnqualifiedCommonType warnings
Found via error-prone.
This commit is contained in:
parent
d7d28fe7d7
commit
fb584d844d
|
@ -28,6 +28,7 @@ import javax.inject.Named;
|
|||
import javax.inject.Provider;
|
||||
import javax.inject.Singleton;
|
||||
|
||||
import org.jclouds.date.TimeStamp;
|
||||
import org.jclouds.domain.JsonBall;
|
||||
import org.jclouds.json.Json;
|
||||
import org.jclouds.ohai.Automatic;
|
||||
|
@ -100,7 +101,7 @@ public class OhaiModule extends AbstractModule {
|
|||
private final Provider<Long> timeProvider;
|
||||
|
||||
@Inject
|
||||
OhaiTimeProvider(Provider<Long> timeProvider) {
|
||||
OhaiTimeProvider(@TimeStamp Provider<Long> timeProvider) {
|
||||
this.timeProvider = timeProvider;
|
||||
}
|
||||
|
||||
|
@ -112,6 +113,7 @@ public class OhaiModule extends AbstractModule {
|
|||
}
|
||||
|
||||
@Provides
|
||||
@TimeStamp
|
||||
protected final Long provideMillis() {
|
||||
return millis();
|
||||
}
|
||||
|
|
|
@ -25,7 +25,6 @@ import org.jclouds.rest.ConfiguresHttpApi;
|
|||
|
||||
import com.google.common.base.Supplier;
|
||||
import com.google.inject.Module;
|
||||
import com.google.inject.Provides;
|
||||
import com.google.inject.TypeLiteral;
|
||||
|
||||
public abstract class BaseEC2ApiExpectTest<T> extends BaseEC2ExpectTest<T> {
|
||||
|
@ -54,7 +53,6 @@ public abstract class BaseEC2ApiExpectTest<T> extends BaseEC2ExpectTest<T> {
|
|||
}
|
||||
|
||||
@Override
|
||||
@Provides
|
||||
protected String provideTimeStamp(DateService dateService) {
|
||||
return CONSTANT_DATE;
|
||||
}
|
||||
|
|
|
@ -30,7 +30,6 @@ import org.jclouds.rest.ConfiguresHttpApi;
|
|||
import org.jclouds.rest.internal.BaseRestApiExpectTest;
|
||||
|
||||
import com.google.inject.Module;
|
||||
import com.google.inject.Provides;
|
||||
|
||||
public abstract class BaseNovaEC2RestApiExpectTest extends BaseRestApiExpectTest<NovaEC2Api> {
|
||||
protected static final String CONSTANT_DATE = "2012-04-16T15:54:08.897Z";
|
||||
|
@ -58,7 +57,6 @@ public abstract class BaseNovaEC2RestApiExpectTest extends BaseRestApiExpectTest
|
|||
private static final class TestNovaEC2HttpApiModule extends NovaEC2HttpApiModule {
|
||||
|
||||
@Override
|
||||
@Provides
|
||||
protected String provideTimeStamp(DateService dateService) {
|
||||
return CONSTANT_DATE;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue