Fixing other Checkstyle violations in GCE.

This commit is contained in:
Marek Wieczorek 2014-06-09 16:44:03 +02:00 committed by Andrew Phillips
parent eb373f79bf
commit 40b65c5d39
3 changed files with 9 additions and 7 deletions

View File

@ -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);
}
}

View File

@ -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)