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) {
|
for (AtomicReference<Operation> operation : operations) {
|
||||||
retry(operationDonePredicate, operationCompleteCheckTimeout, operationCompleteCheckInterval,
|
retry(operationDonePredicate, operationCompleteCheckTimeout, operationCompleteCheckInterval,
|
||||||
MILLISECONDS).apply(operation);
|
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
|
@Override
|
||||||
public <R extends HttpRequest> R bindToRequest(R request, Map<String, Object> postParams) {
|
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");
|
String fingerprint = (String) checkNotNull(postParams.get("fingerprint"), "fingerprint");
|
||||||
Metadata metadata = Metadata.builder()
|
Metadata metadata = Metadata.builder()
|
||||||
.fingerprint(fingerprint)
|
.fingerprint(fingerprint)
|
||||||
|
|
Loading…
Reference in New Issue