From 03294b81eadee0042d56e81dc06acd29fd2cd912 Mon Sep 17 00:00:00 2001 From: Daming Date: Wed, 26 May 2021 21:39:58 +0800 Subject: [PATCH] Update MeterSystem.java (#7019) --- .../oap/server/core/analysis/meter/MeterSystem.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/oap-server/server-core/src/main/java/org/apache/skywalking/oap/server/core/analysis/meter/MeterSystem.java b/oap-server/server-core/src/main/java/org/apache/skywalking/oap/server/core/analysis/meter/MeterSystem.java index 8a400661a..993015576 100644 --- a/oap-server/server-core/src/main/java/org/apache/skywalking/oap/server/core/analysis/meter/MeterSystem.java +++ b/oap-server/server-core/src/main/java/org/apache/skywalking/oap/server/core/analysis/meter/MeterSystem.java @@ -58,7 +58,7 @@ public class MeterSystem implements Service { private static final String METER_CLASS_PACKAGE = "org.apache.skywalking.oap.server.core.analysis.meter.dynamic."; private ModuleManager manager; private ClassPool classPool; - private Map> functionRegister = new HashMap<>(); + private Map> functionRegister = new HashMap<>(); /** * Host the dynamic meter prototype classes. These classes could be create dynamically through {@link * Object#clone()} in the runtime; @@ -87,7 +87,7 @@ public class MeterSystem implements Service { } functionRegister.put( metricsFunction.functionName(), - (Class) functionClass + (Class) functionClass ); } } @@ -105,7 +105,7 @@ public class MeterSystem implements Service { public synchronized void create(String metricsName, String functionName, ScopeType type) throws IllegalArgumentException { - final Class meterFunction = functionRegister.get(functionName); + final Class meterFunction = functionRegister.get(functionName); if (meterFunction == null) { throw new IllegalArgumentException("Function " + functionName + " can't be found."); @@ -144,7 +144,7 @@ public class MeterSystem implements Service { /** * Create a new meter class dynamically. */ - final Class meterFunction = functionRegister.get(functionName); + final Class meterFunction = functionRegister.get(functionName); if (meterFunction == null) { throw new IllegalArgumentException("Function " + functionName + " can't be found.");