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

Fix non-varargs compile warnings

VotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    Description

      In hbase-hbck2 submodule there are a few compile warnings with "non-varargs call of varargs method with inexact argument type for last parameter". Warnings can be removed by casting null value.

      [WARNING] /Users/peter.somogyi/Cloudera/repos/hbase-operator-tools/hbase-hbck2/src/test/java/org/apache/hbase/TestHBCK2.java:[206,46] non-varargs call of varargs method with inexact argument type for last parameter;
        cast to java.lang.String for a varargs call
        cast to java.lang.String[] for a non-varargs call and to suppress this warning
      [WARNING] /Users/peter.somogyi/Cloudera/repos/hbase-operator-tools/hbase-hbck2/src/test/java/org/apache/hbase/TestHBCK2.java:[313,43] non-varargs call of varargs method with inexact argument type for last parameter;
        cast to java.lang.String for a varargs call
        cast to java.lang.String[] for a non-varargs call and to suppress this warning
      [WARNING] /Users/peter.somogyi/Cloudera/repos/hbase-operator-tools/hbase-hbck2/src/test/java/org/apache/hbase/TestFsRegionsMetaRecoverer.java:[117,53] non-varargs call of varargs method with inexact argument type for last parameter;
        cast to org.apache.hadoop.hbase.client.Result for a varargs call
        cast to org.apache.hadoop.hbase.client.Result[] for a non-varargs call and to suppress this warning
      [WARNING] /Users/peter.somogyi/Cloudera/repos/hbase-operator-tools/hbase-hbck2/src/test/java/org/apache/hbase/TestFsRegionsMetaRecoverer.java:[132,53] non-varargs call of varargs method with inexact argument type for last parameter;
        cast to org.apache.hadoop.hbase.client.Result for a varargs call
        cast to org.apache.hadoop.hbase.client.Result[] for a non-varargs call and to suppress this warning
      [WARNING] /Users/peter.somogyi/Cloudera/repos/hbase-operator-tools/hbase-hbck2/src/test/java/org/apache/hbase/TestFsRegionsMetaRecoverer.java:[162,53] non-varargs call of varargs method with inexact argument type for last parameter;
        cast to org.apache.hadoop.hbase.client.Result for a varargs call
        cast to org.apache.hadoop.hbase.client.Result[] for a non-varargs call and to suppress this warning
       

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            wchevreuil Wellington Chevreuil
            psomogyi Peter Somogyi
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment