We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ed8bb74 commit a6d55faCopy full SHA for a6d55fa
dubbo-metrics/dubbo-metrics-api/src/main/java/org/apache/dubbo/metrics/MetricLevel.java
@@ -31,14 +31,6 @@ public enum MetricLevel {
31
32
CRITICAL; // critical metrics
33
34
- static {
35
- for (MetricLevel level : MetricLevel.values()) {
36
- if (level.ordinal() < 0) {
37
- throw new RuntimeException("MetricLevel can not < 0");
38
- }
39
40
41
-
42
public static int getMaxValue() {
43
MetricLevel[] levels = MetricLevel.values();
44
int max = levels[0].ordinal();
0 commit comments