From c9ce66d89c67727832b63978da2a7618216bbffe Mon Sep 17 00:00:00 2001 From: anhefti Date: Thu, 16 Sep 2021 08:38:59 +0200 Subject: [PATCH] code cleanup --- .../ch/ethz/seb/sebserver/gbl/util/Utils.java | 22 ------------------- src/main/resources/messages.properties | 1 + 2 files changed, 1 insertion(+), 22 deletions(-) diff --git a/src/main/java/ch/ethz/seb/sebserver/gbl/util/Utils.java b/src/main/java/ch/ethz/seb/sebserver/gbl/util/Utils.java index 488bc9d9..cc097985 100644 --- a/src/main/java/ch/ethz/seb/sebserver/gbl/util/Utils.java +++ b/src/main/java/ch/ethz/seb/sebserver/gbl/util/Utils.java @@ -587,28 +587,6 @@ public final class Utils { return (hexString.length() < 2) ? "0" + hexString : hexString; } - private static String getJSONValue(final String value) { - if (Constants.TRUE_STRING.equalsIgnoreCase(value) || Constants.FALSE_STRING.equalsIgnoreCase(value)) { - return value.toLowerCase(); - } - - try { - return String.valueOf(Long.parseLong(value)); - } catch (final Exception e) { - } - - try { - return String.valueOf(Double.parseDouble(value)); - } catch (final Exception e) { - } - - return new StringBuilder() - .append(Constants.DOUBLE_QUOTE) - .append(value) - .append(Constants.DOUBLE_QUOTE) - .toString(); - } - public static String toAppFormUrlEncodedBody(final MultiValueMap attributes) { return attributes .entrySet() diff --git a/src/main/resources/messages.properties b/src/main/resources/messages.properties index 7ba3332b..88910fca 100644 --- a/src/main/resources/messages.properties +++ b/src/main/resources/messages.properties @@ -64,6 +64,7 @@ sebserver.overall.types.entityType.LMS_SETUP=LMS Setup sebserver.overall.types.entityType.USER=User Account sebserver.overall.types.entityType.CLIENT_INSTRUCTION=SEB Client Instruction sebserver.overall.types.entityType.EXAM_SEB_RESTRICTION=SEB Exam Restriction +sebserver.overall.types.entityType.CERTIFICATE=Certificate sebserver.overall.activity.title.serveradmin=SEB Server Administration sebserver.overall.activity.title.sebconfig=Configurations