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

Fix non-varargs compile warnings

    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

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: