You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@kafka.apache.org by "Jakob Homan (Jira)" <ji...@apache.org> on 2020/06/03 20:48:00 UTC

[jira] [Created] (KAFKA-10092) Remove unnecessary enum modifier in NioEchoServer

Jakob Homan created KAFKA-10092:
-----------------------------------

             Summary: Remove unnecessary enum modifier in NioEchoServer
                 Key: KAFKA-10092
                 URL: https://issues.apache.org/jira/browse/KAFKA-10092
             Project: Kafka
          Issue Type: Improvement
            Reporter: Jakob Homan
            Assignee: Andrey Falko


n.b. This is a newbie ticket designed to be an introduction to contributing for the assignee.  

In NioEchoServer the enum has its constructor declared as private, which is [redundant|https://docs.oracle.com/javase/tutorial/java/javaOO/enum.html].  We can remove this.  

{code}public class NioEchoServer extends Thread {
    public enum MetricType {
        TOTAL, RATE, AVG, MAX;

        private final String metricNameSuffix;

        private MetricType() {
            metricNameSuffix = "-" + name().toLowerCase(Locale.ROOT);
        }}} {code}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)