mirror of https://github.com/apache/jclouds.git
Enforce no unused imports via Checkstyle
Removed with: mvn checkstyle:checkstyle --quiet -Dcheckstyle.output.file=/dev/stdout -Dcheckstyle.output.format=plain | tac | while read i; do echo $i | sed -n 's/\([^:]*\):\([^:]*\):.*/sed -i \2d \1/p' | bash; done
This commit is contained in:
parent
18359aecd5
commit
4d7865849a
|
@ -28,7 +28,6 @@ import static org.jclouds.reflect.Reflection2.typeToken;
|
|||
import java.net.URI;
|
||||
import java.util.Properties;
|
||||
|
||||
import org.jclouds.apis.ApiMetadata;
|
||||
import org.jclouds.compute.ComputeServiceContext;
|
||||
import org.jclouds.googlecomputeengine.compute.config.GoogleComputeEngineServiceContextModule;
|
||||
import org.jclouds.googlecomputeengine.config.GoogleComputeEngineHttpApiModule;
|
||||
|
|
|
@ -16,7 +16,6 @@
|
|||
*/
|
||||
package org.jclouds.googlecomputeengine.config;
|
||||
|
||||
import static com.google.common.base.Preconditions.checkState;
|
||||
import static com.google.common.base.Suppliers.compose;
|
||||
import static com.google.inject.name.Names.named;
|
||||
import static org.jclouds.Constants.PROPERTY_SESSION_INTERVAL;
|
||||
|
|
|
@ -74,4 +74,4 @@ public class KernelApiLiveTest extends BaseGoogleComputeEngineApiLiveTest {
|
|||
assertEquals(result.getName(), expected.getName());
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
|
|
@ -32,6 +32,7 @@ import org.jclouds.googlecomputeengine.domain.Operation;
|
|||
|
||||
import com.google.common.base.Predicate;
|
||||
import com.google.common.base.Supplier;
|
||||
import com.google.common.util.concurrent.Atomics;
|
||||
import com.google.inject.Injector;
|
||||
import com.google.inject.Key;
|
||||
import com.google.inject.Module;
|
||||
|
@ -154,7 +155,7 @@ public class BaseGoogleComputeEngineApiLiveTest extends BaseApiLiveTest<GoogleCo
|
|||
|
||||
protected static Operation waitOperationDone(Predicate<AtomicReference<Operation>> operationDonePredicate,
|
||||
Operation operation, long maxWaitSeconds) {
|
||||
AtomicReference<Operation> operationReference = new AtomicReference<Operation>(operation);
|
||||
AtomicReference<Operation> operationReference = Atomics.newReference(operation);
|
||||
retry(operationDonePredicate, maxWaitSeconds, 1, SECONDS).apply(operationReference);
|
||||
return operationReference.get();
|
||||
}
|
||||
|
|
|
@ -73,4 +73,4 @@ public class ParseImageListTest extends BaseGoogleComputeEngineParseTest<ListPag
|
|||
))
|
||||
.build();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -38,4 +38,4 @@ public class ParseInstanceSerialOutputTest extends BaseGoogleComputeEngineParseT
|
|||
return Instance.SerialPortOutput.builder()
|
||||
.contents("console output").build();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -22,7 +22,9 @@ import javax.ws.rs.Consumes;
|
|||
import javax.ws.rs.core.MediaType;
|
||||
|
||||
import org.jclouds.date.internal.SimpleDateFormatDateService;
|
||||
import org.jclouds.googlecomputeengine.domain.*;
|
||||
import org.jclouds.googlecomputeengine.domain.Kernel;
|
||||
import org.jclouds.googlecomputeengine.domain.ListPage;
|
||||
import org.jclouds.googlecomputeengine.domain.Resource;
|
||||
import org.jclouds.googlecomputeengine.internal.BaseGoogleComputeEngineParseTest;
|
||||
import org.testng.annotations.Test;
|
||||
|
||||
|
|
Loading…
Reference in New Issue