diff --git a/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/shell/Ls.java b/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/shell/Ls.java index 19383d009c..32084fc8fe 100644 --- a/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/shell/Ls.java +++ b/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/shell/Ls.java @@ -345,7 +345,7 @@ private void adjustColumnWidths(PathData items[]) throws IOException { int maxEC = 0; for (PathData item : items) { ContentSummary contentSummary = item.fs.getContentSummary(item.path); - maxEC=maxLength(maxEC,contentSummary.getErasureCodingPolicy().length()); + maxEC = maxLength(maxEC, contentSummary.getErasureCodingPolicy()); } fmt.append((maxEC > 0) ? "%-" + maxEC + "s " : "%s"); }