Uploaded image for project: 'HBase'
  1. HBase
  2. HBASE-15794

Fix Findbugs instanceof always true issue in MultiServerCallable

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 2.0.0
    • None
    • None
    • Reviewed

    Description

      Findbugs keeps reporting this issue on Client:

      Code Warning
      BC instanceof will always return true for all nonnull values in org.apache.hadoop.hbase.client.MultiServerCallable.isCellBlock(), since all org.apache.hadoop.hbase.client.ClusterConnection are instances of org.apache.hadoop.hbase.client.ClusterConnection
      Bug type BC_VACUOUS_INSTANCEOF (click for details)
      In class org.apache.hadoop.hbase.client.MultiServerCallable
      In method org.apache.hadoop.hbase.client.MultiServerCallable.isCellBlock()
      Actual type org.apache.hadoop.hbase.client.ClusterConnection
      Expected org.apache.hadoop.hbase.client.ClusterConnection
      At MultiServerCallable.java:[line 141]

      https://builds.apache.org/job/PreCommit-HBASE-Build/1812/artifact/patchprocess/branch-findbugs-hbase-client-warnings.html

      Attachments

        1. HBASE-15794.patch
          1 kB
          Jurriaan Mous

        Activity

          People

            jurmous Jurriaan Mous
            jurmous Jurriaan Mous
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: