HBASE-15794 Fix Findbugs instanceof always true issue in

MultiServerCallable

Signed-off-by: stack <stack@apache.org>
This commit is contained in:
Jurriaan Mous 2016-05-07 14:40:51 +02:00 committed by stack
parent e71ae601f7
commit ac31ceb835
1 changed files with 2 additions and 3 deletions

View File

@ -137,9 +137,8 @@ class MultiServerCallable<R> extends PayloadCarryingServerCallable<MultiResponse
private boolean isCellBlock() {
// This is not exact -- the configuration could have changed on us after connection was set up
// but it will do for now.
HConnection connection = getConnection();
if (!(connection instanceof ClusterConnection)) return true; // Default is to do cellblocks.
return ((ClusterConnection) connection).hasCellBlockSupport();
ClusterConnection conn = getConnection();
return conn.hasCellBlockSupport();
}
@Override