Skip to content

Commit

Permalink
[Dubbo-3339] Remove futility check code (#3346)
Browse files Browse the repository at this point in the history
* Remove futility check code
  • Loading branch information
Bricks-Man authored and carryxyh committed Jan 25, 2019
1 parent ed8bb74 commit a6d55fa
Showing 1 changed file with 0 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,14 +31,6 @@ public enum MetricLevel {

CRITICAL; // critical metrics

static {
for (MetricLevel level : MetricLevel.values()) {
if (level.ordinal() < 0) {
throw new RuntimeException("MetricLevel can not < 0");
}
}
}

public static int getMaxValue() {
MetricLevel[] levels = MetricLevel.values();
int max = levels[0].ordinal();
Expand Down

0 comments on commit a6d55fa

Please sign in to comment.