Skip to content

Commit

Permalink
Development: Fix failing server style (#9912)
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonEntholzer authored Nov 29, 2024
1 parent b365494 commit 04ba6b9
Showing 1 changed file with 15 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,14 @@ public String value() {
return this.value;
}

/**
* Creates a {@link Kind} instance from a given string value.
* <p>
*
* @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);
Expand All @@ -121,7 +129,6 @@ public static Kind fromValue(String value) {
return constant;
}
}

}

/**
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit 04ba6b9

Please sign in to comment.