diff --git a/hadoop-hdfs-project/hadoop-hdfs-client/src/main/java/org/apache/hadoop/hdfs/protocol/LocatedBlocks.java b/hadoop-hdfs-project/hadoop-hdfs-client/src/main/java/org/apache/hadoop/hdfs/protocol/LocatedBlocks.java index e7d5b3ae4c9..baf59ce6136 100644 --- a/hadoop-hdfs-project/hadoop-hdfs-client/src/main/java/org/apache/hadoop/hdfs/protocol/LocatedBlocks.java +++ b/hadoop-hdfs-project/hadoop-hdfs-client/src/main/java/org/apache/hadoop/hdfs/protocol/LocatedBlocks.java @@ -188,11 +188,11 @@ public class LocatedBlocks { @Override public String toString() { - return getClass().getSimpleName() + "{" + "\n fileLength=" + fileLength - + "\n underConstruction=" + underConstruction - + "\n blocks=" + blocks - + "\n lastLocatedBlock=" + lastLocatedBlock - + "\n isLastBlockComplete=" + isLastBlockComplete - + "\n ecPolicy=" + ecPolicy + "}"; + return getClass().getSimpleName() + "{" + "; fileLength=" + fileLength + + "; underConstruction=" + underConstruction + + "; blocks=" + blocks + + "; lastLocatedBlock=" + lastLocatedBlock + + "; isLastBlockComplete=" + isLastBlockComplete + + "; ecPolicy=" + ecPolicy + "}"; } }