Refine the code according to Anoop's comments.
Merge branch 'hbase-11339-core-sweep-tool' of https://github.com/JingchengDu/hbase into hbase-11339-core-sweep-tool