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)