diff --git a/remoting/src/main/java/org/apache/rocketmq/remoting/protocol/header/ExportRocksDBConfigToJsonRequestHeader.java b/remoting/src/main/java/org/apache/rocketmq/remoting/protocol/header/ExportRocksDBConfigToJsonRequestHeader.java index 4941d8b4978..7b1f9470e1e 100644 --- a/remoting/src/main/java/org/apache/rocketmq/remoting/protocol/header/ExportRocksDBConfigToJsonRequestHeader.java +++ b/remoting/src/main/java/org/apache/rocketmq/remoting/protocol/header/ExportRocksDBConfigToJsonRequestHeader.java @@ -31,15 +31,13 @@ public class ExportRocksDBConfigToJsonRequestHeader implements CommandCustomHead private static final String CONFIG_TYPE_SEPARATOR = ";"; public enum ConfigType { - TOPICS(0, "topics"), - SUBSCRIPTION_GROUPS(1, "subscriptionGroups"), - CONSUMER_OFFSETS(2, "consumerOffsets"); + TOPICS("topics"), + SUBSCRIPTION_GROUPS("subscriptionGroups"), + CONSUMER_OFFSETS("consumerOffsets"); - private final int code; private final String typeName; - ConfigType(int code, String typeName) { - this.code = code; + ConfigType(String typeName) { this.typeName = typeName; } @@ -71,10 +69,6 @@ public static String toString(List configTypes) { return sb.toString(); } - public int getCode() { - return code; - } - public String getTypeName() { return typeName; }