JAMES-2575 remove unused fromString method
Project: http://git-wip-us.apache.org/repos/asf/james-project/repo Commit: http://git-wip-us.apache.org/repos/asf/james-project/commit/75f43ba4 Tree: http://git-wip-us.apache.org/repos/asf/james-project/tree/75f43ba4 Diff: http://git-wip-us.apache.org/repos/asf/james-project/diff/75f43ba4 Branch: refs/heads/master Commit: 75f43ba45e1bea54b1279b8716980c931c4a5b11 Parents: 1e39ae0 Author: Michael Schnitzler <[email protected]> Authored: Mon Oct 29 16:42:42 2018 +0100 Committer: Benoit Tellier <[email protected]> Committed: Wed Oct 31 08:48:29 2018 +0700 ---------------------------------------------------------------------- .../org/apache/james/core/healthcheck/ResultStatus.java | 10 ---------- 1 file changed, 10 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/james-project/blob/75f43ba4/core/src/main/java/org/apache/james/core/healthcheck/ResultStatus.java ---------------------------------------------------------------------- diff --git a/core/src/main/java/org/apache/james/core/healthcheck/ResultStatus.java b/core/src/main/java/org/apache/james/core/healthcheck/ResultStatus.java index 64547c7..d962755 100644 --- a/core/src/main/java/org/apache/james/core/healthcheck/ResultStatus.java +++ b/core/src/main/java/org/apache/james/core/healthcheck/ResultStatus.java @@ -18,21 +18,11 @@ ****************************************************************/ package org.apache.james.core.healthcheck; -import java.util.Arrays; - public enum ResultStatus { HEALTHY("healthy"), DEGRADED("degraded"), UNHEALTHY("unhealthy"); - public static ResultStatus fromString(String value) { - return Arrays.stream(values()) - .filter(status -> status.value.equalsIgnoreCase(value)) - .findFirst() - .orElseThrow(() -> new IllegalArgumentException( - String.format("Unknown status value '%s'", value))); - } - private final String value; ResultStatus(String value) { --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
