diff --git a/hbase-server/src/main/java/org/apache/hadoop/hbase/io/hfile/BlockCacheKey.java b/hbase-server/src/main/java/org/apache/hadoop/hbase/io/hfile/BlockCacheKey.java index 66cf2bbf304..58d5c00d2c5 100644 --- a/hbase-server/src/main/java/org/apache/hadoop/hbase/io/hfile/BlockCacheKey.java +++ b/hbase-server/src/main/java/org/apache/hadoop/hbase/io/hfile/BlockCacheKey.java @@ -68,7 +68,7 @@ public class BlockCacheKey implements HeapSize, java.io.Serializable { @Override public String toString() { - return String.format("%s_%d", hfileName, offset); + return this.hfileName + '_' + this.offset; } public static final long FIXED_OVERHEAD = ClassSize.align(