diff --git a/ethereum/spec/src/main/java/tech/pegasys/teku/spec/Spec.java b/ethereum/spec/src/main/java/tech/pegasys/teku/spec/Spec.java index 56c0aff9e9a..25983ac1e1b 100644 --- a/ethereum/spec/src/main/java/tech/pegasys/teku/spec/Spec.java +++ b/ethereum/spec/src/main/java/tech/pegasys/teku/spec/Spec.java @@ -383,7 +383,7 @@ public SszList deserializeBlobsInBlock(final Bytes serializedBlobs, final return atSlot(slot) .getSchemaDefinitions() .toVersionDeneb() - .orElseThrow(() -> new RuntimeException("Deneb milestone is required to load blobs")) + .orElseThrow(() -> new RuntimeException("Deneb milestone is required to deserialize blobs")) .getBlobsInBlockSchema() .sszDeserialize(serializedBlobs); } @@ -392,7 +392,8 @@ public BlobSidecar deserializeBlobSidecar(final Bytes serializedBlobSidecar, fin return atSlot(slot) .getSchemaDefinitions() .toVersionDeneb() - .orElseThrow(() -> new RuntimeException("Deneb milestone is required to load blob sidecar")) + .orElseThrow( + () -> new RuntimeException("Deneb milestone is required to deserialize blob sidecar")) .getBlobSidecarSchema() .sszDeserialize(serializedBlobSidecar); } @@ -405,7 +406,7 @@ public ExecutionPayloadHeader deserializeJsonExecutionPayloadHeader( .orElseThrow( () -> new RuntimeException( - "Bellatrix milestone is required to load execution payload header")) + "Bellatrix milestone is required to deserialize execution payload header")) .getExecutionPayloadHeaderSchema() .jsonDeserialize(objectMapper.createParser(jsonFile)); } diff --git a/networking/p2p/src/test/java/tech/pegasys/teku/networking/p2p/libp2p/rpc/RpcHandlerTest.java b/networking/p2p/src/test/java/tech/pegasys/teku/networking/p2p/libp2p/rpc/RpcHandlerTest.java index b9dea7d3f5c..909c2afa67f 100644 --- a/networking/p2p/src/test/java/tech/pegasys/teku/networking/p2p/libp2p/rpc/RpcHandlerTest.java +++ b/networking/p2p/src/test/java/tech/pegasys/teku/networking/p2p/libp2p/rpc/RpcHandlerTest.java @@ -246,7 +246,6 @@ void sendRequest_interruptBeforeInitialPayloadWritten( verify(stream).close(); } - @SuppressWarnings("UnnecessaryAsync") private Class executeInterrupts( final boolean closeStream, final boolean exceedTimeout) { Class expectedException = null;