wonook commented on a change in pull request #73: [Nemo-62] Support Multiple 
Jobs Submission in a Single User Program
URL: https://github.com/apache/incubator-nemo/pull/73#discussion_r202941942
 
 

 ##########
 File path: 
runtime/master/src/main/java/edu/snu/nemo/runtime/master/MetricStore.java
 ##########
 @@ -33,18 +33,15 @@
 public final class MetricStore {
   private final Map<Class, Map<String, Object>> metricMap = new HashMap<>();
   // You can add more metrics by adding item to this metricList list.
-  private final Map<String, Class> metricList = new HashMap<String, Class>() {
-    {
-      put("JobMetric", JobMetric.class);
-      put("StageMetric", StageMetric.class);
-      put("TaskMetric", TaskMetric.class);
-    }
-  };
-
+  private final Map<String, Class> metricList = new HashMap<>();
 
 Review comment:
   This also showed up as a SonarQube issue

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to