[MINOR] americanize spelling (#322)

* americanize spelling

Signed-off-by: Sally MacFarlane <sally.macfarlane@consensys.net>
pull/329/head
Sally MacFarlane 5 years ago committed by GitHub
parent aebc4accd9
commit 59c9d3e72d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      enclave/src/main/java/org/hyperledger/besu/enclave/Enclave.java
  2. 6
      ethereum/api/src/main/java/org/hyperledger/besu/ethereum/api/jsonrpc/JsonRpcHttpService.java

@ -143,7 +143,7 @@ public class Enclave {
try {
bodyText = objectMapper.writeValueAsString(content);
} catch (final JsonProcessingException e) {
throw new EnclaveClientException(400, "Unable to serialise request.");
throw new EnclaveClientException(400, "Unable to serialize request.");
}
return requestTransmitter.post(mediaType, bodyText, endpoint, responseBodyHandler);

@ -303,7 +303,7 @@ public class JsonRpcHttpService {
} catch (final RuntimeException re) {
throw new JsonRpcServiceException(
String.format(
"TLS options failed to initialise for Ethereum JSON RPC listener: %s",
"TLS options failed to initialize for Ethereum JSON RPC listener: %s",
re.getMessage()));
}
});
@ -458,7 +458,7 @@ public class JsonRpcHttpService {
final JsonRpcResponse jsonRpcResponse = (JsonRpcResponse) res.result();
response.setStatusCode(status(jsonRpcResponse).code());
response.putHeader("Content-Type", APPLICATION_JSON);
response.end(serialise(jsonRpcResponse));
response.end(serialize(jsonRpcResponse));
});
}
@ -476,7 +476,7 @@ public class JsonRpcHttpService {
}
}
private String serialise(final JsonRpcResponse response) {
private String serialize(final JsonRpcResponse response) {
if (response.getType() == JsonRpcResponseType.NONE) {
return EMPTY_RESPONSE;

Loading…
Cancel
Save