From 4445d78200f61bf25683f5e005946c101bf58299 Mon Sep 17 00:00:00 2001 From: anislucidi01 Date: Wed, 30 Aug 2023 19:36:17 +0200 Subject: [PATCH] Corrected error in set method. --- .../swclient/mil/preset/bean/PresetPathParams.java | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/src/main/java/it/pagopa/swclient/mil/preset/bean/PresetPathParams.java b/src/main/java/it/pagopa/swclient/mil/preset/bean/PresetPathParams.java index 0dc11b3..e4d5d9a 100755 --- a/src/main/java/it/pagopa/swclient/mil/preset/bean/PresetPathParams.java +++ b/src/main/java/it/pagopa/swclient/mil/preset/bean/PresetPathParams.java @@ -2,7 +2,6 @@ import it.pagopa.swclient.mil.preset.ErrorCode; import jakarta.validation.constraints.NotNull; -import jakarta.validation.constraints.Pattern; import jakarta.ws.rs.PathParam; public class PresetPathParams { @@ -23,18 +22,17 @@ public String getPresetId() { } /** - * @param subscriberId the subscriberId to set + * @param presetId the presetId to set */ - public void setPresetId(String subscriberId) { + public void setPresetId(String presetId) { this.presetId = presetId; } + @Override public String toString() { - StringBuilder builder = new StringBuilder(); - builder.append("PresetPathParam [presetId="); - builder.append(presetId); - builder.append("]"); - return builder.toString(); + return "PresetPathParam [presetId=" + + presetId + + "]"; } }