From 0c96695404423e78de963ad9b221499a4cc6e580 Mon Sep 17 00:00:00 2001 From: svariant Date: Fri, 10 Nov 2023 10:51:20 +0100 Subject: [PATCH] [fix] Cleaned code --- .../entity/receipt/enumeration/ReasonErrorCode.java | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/src/main/java/it/gov/pagopa/receipt/pdf/generator/entity/receipt/enumeration/ReasonErrorCode.java b/src/main/java/it/gov/pagopa/receipt/pdf/generator/entity/receipt/enumeration/ReasonErrorCode.java index e6439a87..4da82af3 100644 --- a/src/main/java/it/gov/pagopa/receipt/pdf/generator/entity/receipt/enumeration/ReasonErrorCode.java +++ b/src/main/java/it/gov/pagopa/receipt/pdf/generator/entity/receipt/enumeration/ReasonErrorCode.java @@ -1,9 +1,11 @@ package it.gov.pagopa.receipt.pdf.generator.entity.receipt.enumeration; public enum ReasonErrorCode { - ERROR_QUEUE(902), ERROR_BLOB_STORAGE(901), ERROR_PDF_ENGINE(700), ERROR_TEMPLATE_PDF(903); + ERROR_BLOB_STORAGE(901), + ERROR_PDF_ENGINE(700), + ERROR_TEMPLATE_PDF(903); - private int code; + private final int code; ReasonErrorCode(int code){ this.code = code; @@ -12,8 +14,4 @@ public enum ReasonErrorCode { public int getCode(){ return this.code; } - - public int getCustomCode(int customCode){ - return customCode; - } }