fix MissingCasesInEnumSwitch (#5595)

Non-exhaustive switch; either add a default or handle the remaining cases: VALUE, UNKNOWN

Co-authored-by: 吴晟 Wu Sheng <wu.sheng@foxmail.com>
This commit is contained in:
Kdump 2020-10-01 07:09:50 +08:00 committed by GitHub
parent 3bc94cbb68
commit 7d5d8b4335
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -126,6 +126,8 @@ public class SkywalkingMeterRegistry extends MeterRegistry {
case DURATION: case DURATION:
meterName = baseName + "_duration_sum"; meterName = baseName + "_duration_sum";
break; break;
default:
break;
} }
if (isCounter) { if (isCounter) {