From 04ba6b9fd1b781b4a8b4865fcf46f8e9abdcfe83 Mon Sep 17 00:00:00 2001 From: Simon Entholzer <33342534+SimonEntholzer@users.noreply.github.com> Date: Fri, 29 Nov 2024 20:56:50 +0100 Subject: [PATCH] Development: Fix failing server style (#9912) --- .../localci/scaparser/format/sarif/Result.java | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/src/main/java/de/tum/cit/aet/artemis/programming/service/localci/scaparser/format/sarif/Result.java b/src/main/java/de/tum/cit/aet/artemis/programming/service/localci/scaparser/format/sarif/Result.java index 49d17e49649a..4230d64dcd9c 100644 --- a/src/main/java/de/tum/cit/aet/artemis/programming/service/localci/scaparser/format/sarif/Result.java +++ b/src/main/java/de/tum/cit/aet/artemis/programming/service/localci/scaparser/format/sarif/Result.java @@ -111,6 +111,14 @@ public String value() { return this.value; } + /** + * Creates a {@link Kind} instance from a given string value. + *

+ * + * @param value the string representation of the {@link Kind} + * @return the matching {@link Kind} instance + * @throws IllegalArgumentException if the provided value does not correspond to any defined {@link Kind} + */ @JsonCreator public static Kind fromValue(String value) { Kind constant = CONSTANTS.get(value); @@ -121,7 +129,6 @@ public static Kind fromValue(String value) { return constant; } } - } /** @@ -155,6 +162,13 @@ public String value() { return this.value; } + /** + * Creates a {@link Level} instance from a given string value. + * + * @param value the string representation of the {@link Level} + * @return the matching {@link Level} instance + * @throws IllegalArgumentException if the provided value does not correspond to any defined {@link Level} + */ @JsonCreator public static Level fromValue(String value) { Level constant = CONSTANTS.get(value);