|
@@ -132,7 +132,8 @@ public class Block implements Writable, Comparable<Block> {
|
|
|
/**
|
|
|
*/
|
|
|
public String getBlockName() {
|
|
|
- return BLOCK_FILE_PREFIX + String.valueOf(blockId);
|
|
|
+ return new StringBuilder().append(BLOCK_FILE_PREFIX)
|
|
|
+ .append(blockId).toString();
|
|
|
}
|
|
|
|
|
|
/**
|
|
@@ -160,7 +161,9 @@ public class Block implements Writable, Comparable<Block> {
|
|
|
* @return the string representation of the block
|
|
|
*/
|
|
|
public static String toString(final Block b) {
|
|
|
- return b.getBlockName() + "_" + b.getGenerationStamp();
|
|
|
+ StringBuilder sb = new StringBuilder();
|
|
|
+ b.appendStringTo(sb);
|
|
|
+ return sb.toString();
|
|
|
}
|
|
|
|
|
|
/**
|