From 0d76332f014082f788666c12b358ee6eedb0d323 Mon Sep 17 00:00:00 2001 From: Bruk Ori Date: Tue, 27 Aug 2024 18:30:41 +0300 Subject: [PATCH] [#6] fix naming Signed-off-by: Ori Bruk --- .../main/java/info/frostfs/sdk/mappers/SessionMapper.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/models/src/main/java/info/frostfs/sdk/mappers/SessionMapper.java b/models/src/main/java/info/frostfs/sdk/mappers/SessionMapper.java index ee3deb7..ca14d05 100644 --- a/models/src/main/java/info/frostfs/sdk/mappers/SessionMapper.java +++ b/models/src/main/java/info/frostfs/sdk/mappers/SessionMapper.java @@ -9,14 +9,14 @@ import java.io.IOException; import static java.util.Objects.isNull; public class SessionMapper { - private static final String ERROR_TOKEN_MISSING_ERROR = "Token is not present"; + private static final String ERROR_TOKEN_MISSING_MESSAGE = "Token is not present"; private SessionMapper() { } public static byte[] serialize(Types.SessionToken token) { if (isNull(token)) { - throw new IllegalArgumentException(ERROR_TOKEN_MISSING_ERROR); + throw new IllegalArgumentException(ERROR_TOKEN_MISSING_MESSAGE); } try { @@ -31,7 +31,7 @@ public class SessionMapper { public static Types.SessionToken deserializeSessionToken(byte[] bytes) { if (isNull(bytes) || bytes.length == 0) { - throw new IllegalArgumentException(ERROR_TOKEN_MISSING_ERROR); + throw new IllegalArgumentException(ERROR_TOKEN_MISSING_MESSAGE); } try {