kezhenxu94 commented on a change in pull request #5269:
URL: https://github.com/apache/skywalking/pull/5269#discussion_r467983279



##########
File path: 
oap-server/oal-rt/src/main/java/org/apache/skywalking/oal/rt/parser/MetricsHolder.java
##########
@@ -45,13 +48,16 @@ public static void init() throws IOException {
         }
     }
 
-    public static Class<? extends Metrics> find(
-        String functionName) {
-        String func = functionName;
-        Class<? extends Metrics> metricsClass = REGISTER.get(
-            func);
+    @SneakyThrows

Review comment:
       `init` throws `IOException`, which is not runtime exception




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to