diff --git a/pulsar-client-tools/src/main/java/org/apache/pulsar/admin/cli/CliCommand.java b/pulsar-client-tools/src/main/java/org/apache/pulsar/admin/cli/CliCommand.java index 4ac7f54b6578f..4c2779574d4b4 100644 --- a/pulsar-client-tools/src/main/java/org/apache/pulsar/admin/cli/CliCommand.java +++ b/pulsar-client-tools/src/main/java/org/apache/pulsar/admin/cli/CliCommand.java @@ -85,7 +85,7 @@ static long validateSizeString(String s) { String subStr = s.substring(0, s.length() - 1); long size; try { - size = sizeUint.contains(last) + size = sizeUnit.contains(last) ? Long.parseLong(subStr) : Long.parseLong(s); } catch (IllegalArgumentException e) { @@ -218,7 +218,7 @@ void print(T item) { private static ObjectMapper mapper = ObjectMapperFactory.create(); private static ObjectWriter writer = mapper.writerWithDefaultPrettyPrinter(); - private static Set sizeUint = Sets.newHashSet('k', 'K', 'm', 'M', 'g', 'G', 't', 'T'); + private static Set sizeUnit = Sets.newHashSet('k', 'K', 'm', 'M', 'g', 'G', 't', 'T'); abstract void run() throws Exception; }