mirror of https://github.com/apache/jclouds.git
Fixing other Checkstyle violations in GCE.
This commit is contained in:
parent
eb373f79bf
commit
40b65c5d39
|
@ -175,7 +175,8 @@ public class CreateNodesWithGroupEncodedIntoNameThenAddToSet extends
|
|||
for (AtomicReference<Operation> operation : operations) {
|
||||
retry(operationDonePredicate, operationCompleteCheckTimeout, operationCompleteCheckInterval,
|
||||
MILLISECONDS).apply(operation);
|
||||
checkState(!operation.get().getHttpError().isPresent(), "Could not create firewall, operation failed" + operation);
|
||||
checkState(!operation.get().getHttpError().isPresent(),
|
||||
"Could not create firewall, operation failed" + operation);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -39,7 +39,8 @@ public class MetadataBinder implements MapBinder {
|
|||
*/
|
||||
@Override
|
||||
public <R extends HttpRequest> R bindToRequest(R request, Map<String, Object> postParams) {
|
||||
Map<String, String> items = ImmutableMap.copyOf((Map<String, String>)checkNotNull(postParams.get("items"), "item"));
|
||||
Map<String, String> items =
|
||||
ImmutableMap.copyOf((Map<String, String>) checkNotNull(postParams.get("items"), "item"));
|
||||
String fingerprint = (String) checkNotNull(postParams.get("fingerprint"), "fingerprint");
|
||||
Metadata metadata = Metadata.builder()
|
||||
.fingerprint(fingerprint)
|
||||
|
|
|
@ -345,11 +345,11 @@ public class GoogleComputeEngineServiceExpectTest extends BaseGoogleComputeEngin
|
|||
.addHeader("Authorization", "Bearer " + TOKEN).build();
|
||||
|
||||
HttpRequest deleteDiskRequest = HttpRequest.builder()
|
||||
.method("DELETE")
|
||||
.endpoint("https://www.googleapis" +
|
||||
".com/compute/v1/projects/myproject/zones/us-central1-a/disks/test")
|
||||
.addHeader("Accept", "application/json")
|
||||
.addHeader("Authorization", "Bearer " + TOKEN).build();
|
||||
.method("DELETE")
|
||||
.endpoint("https://www.googleapis" +
|
||||
".com/compute/v1/projects/myproject/zones/us-central1-a/disks/test")
|
||||
.addHeader("Accept", "application/json")
|
||||
.addHeader("Authorization", "Bearer " + TOKEN).build();
|
||||
|
||||
List<HttpRequest> orderedRequests = ImmutableList.<HttpRequest>builder()
|
||||
.add(requestForScopes(COMPUTE_READONLY_SCOPE))
|
||||
|
|
Loading…
Reference in New Issue