From 4b8711efe1aca49403a05f0f8798bc33154d5a76 Mon Sep 17 00:00:00 2001 From: unknown Date: Fri, 11 Oct 2024 15:28:11 +0530 Subject: [PATCH] Make method parameters final in JsonRpcErrorCodes --- .../ethereum/executionclient/web3j/JsonRpcErrorCodes.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ethereum/executionclient/src/main/java/tech/pegasys/teku/ethereum/executionclient/web3j/JsonRpcErrorCodes.java b/ethereum/executionclient/src/main/java/tech/pegasys/teku/ethereum/executionclient/web3j/JsonRpcErrorCodes.java index 8a66b6017d1..cdff5877fd4 100644 --- a/ethereum/executionclient/src/main/java/tech/pegasys/teku/ethereum/executionclient/web3j/JsonRpcErrorCodes.java +++ b/ethereum/executionclient/src/main/java/tech/pegasys/teku/ethereum/executionclient/web3j/JsonRpcErrorCodes.java @@ -24,7 +24,7 @@ public enum JsonRpcErrorCodes { private final int errorCode; private final String description; - JsonRpcErrorCodes(int errorCode, String description) { + JsonRpcErrorCodes(final int errorCode, final String description) { this.errorCode = errorCode; this.description = description; } @@ -37,11 +37,11 @@ public String getDescription() { return description; } - public static String getErrorMessage(int errorCode) { + public static String getErrorMessage(final int errorCode) { return fromCode(errorCode).getDescription(); } - public static JsonRpcErrorCodes fromCode(int errorCode) { + public static JsonRpcErrorCodes fromCode(final int errorCode) { for (JsonRpcErrorCodes error : values()) { if (error.getErrorCode() == errorCode) { return error;