code cleanup

This commit is contained in:
anhefti 2021-09-16 08:38:59 +02:00
parent cea62d5fa4
commit c9ce66d89c
2 changed files with 1 additions and 22 deletions

View file

@ -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<String, String> attributes) {
return attributes
.entrySet()

View file

@ -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