clarkwtc commented on code in PR #17923:
URL: https://github.com/apache/kafka/pull/17923#discussion_r1855454837


##########
clients/src/main/java/org/apache/kafka/common/metrics/JmxReporter.java:
##########
@@ -69,20 +69,7 @@ public class JmxReporter implements MetricsReporter {
     private final Map<String, KafkaMbean> mbeans = new HashMap<>();
     private Predicate<String> mbeanPredicate = s -> true;
 
-    public JmxReporter() {
-        this("");
-    }
-
-    /**
-     * Create a JMX reporter that prefixes all metrics with the given string.
-     *  @deprecated Since 2.6.0. Use {@link JmxReporter#JmxReporter()}
-     *  Initialize JmxReporter with {@link 
JmxReporter#contextChange(MetricsContext)}
-     *  Populate prefix by adding _namespace/prefix key value pair to {@link 
MetricsContext}
-     */
-    @Deprecated
-    public JmxReporter(String prefix) {
-        this.prefix = prefix != null ? prefix : "";
-    }
+    public JmxReporter() {}

Review Comment:
   @chia7712 I got it; I missed initializing "prefix" to empty string, thanks.



-- 
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.

To unsubscribe, e-mail: jira-unsubscr...@kafka.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to