From 2124f4054d7684ad36b0a33ff37dd39d153cff2b Mon Sep 17 00:00:00 2001 From: ndimiduk Date: Thu, 12 Dec 2013 20:46:12 +0000 Subject: [PATCH] HBASE-10116 Addendum: fix findbugs warning git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1550522 13f79535-47bb-0310-9956-ffa450edef68 --- .../java/org/apache/hadoop/hbase/io/hfile/slab/SlabCache.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hbase-server/src/main/java/org/apache/hadoop/hbase/io/hfile/slab/SlabCache.java b/hbase-server/src/main/java/org/apache/hadoop/hbase/io/hfile/slab/SlabCache.java index 32757e2d436..9b4621ec3ed 100644 --- a/hbase-server/src/main/java/org/apache/hadoop/hbase/io/hfile/slab/SlabCache.java +++ b/hbase-server/src/main/java/org/apache/hadoop/hbase/io/hfile/slab/SlabCache.java @@ -179,7 +179,7 @@ public class SlabCache implements SlabItemActionWatcher, BlockCache, HeapSize { private void addSlab(int blockSize, int numBlocks) { LOG.info("Creating a slab of blockSize " + blockSize + " with " + numBlocks - + " blocks, " + StringUtils.humanReadableInt(blockSize * numBlocks) + "bytes."); + + " blocks, " + StringUtils.humanReadableInt(blockSize * (long) numBlocks) + "bytes."); sizer.put(blockSize, new SingleSizeCache(blockSize, numBlocks, this)); }