Uploaded image for project: 'Sqoop (Retired)'
  1. Sqoop (Retired)
  2. SQOOP-3303

Fix warnings during Sqoop compilation

    XMLWordPrintableJSON

Details

    • Task
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.5.0
    • 1.5.0
    • None
    • None

    Description

      Ant prints the following warning during every Sqoop compilation:

      /Users/szabolcsvasas/Documents/workspace/sqoop/sqoop-vasas-gradle/sqoop/src/test/org/apache/sqoop/TestAvroExport.java:477: warning: non-varargs call of varargs method with inexact argument type for last parameter;
      
          createAvroFile(0, TOTAL_RECORDS, null);
      
                                           ^
      
        cast to ColumnGenerator for a varargs call
      
        cast to ColumnGenerator[] for a non-varargs call and to suppress this warning
      
      /Users/szabolcsvasas/Documents/workspace/sqoop/sqoop-vasas-gradle/sqoop/src/test/org/apache/sqoop/TestAvroExport.java:492: warning: non-varargs call of varargs method with inexact argument type for last parameter;
      
          createAvroFile(0, TOTAL_RECORDS, null);
      
                                           ^
      
        cast to ColumnGenerator for a varargs call
      
        cast to ColumnGenerator[] for a non-varargs call and to suppress this warning
      
      /Users/szabolcsvasas/Documents/workspace/sqoop/sqoop-vasas-gradle/sqoop/src/test/org/apache/sqoop/TestParquetExport.java:422: warning: non-varargs call of varargs method with inexact argument type for last parameter;
      
          createParquetFile(0, TOTAL_RECORDS, null);
      
                                              ^
      
        cast to ColumnGenerator for a varargs call
      
        cast to ColumnGenerator[] for a non-varargs call and to suppress this warning
      
      /Users/szabolcsvasas/Documents/workspace/sqoop/sqoop-vasas-gradle/sqoop/src/test/org/apache/sqoop/TestParquetExport.java:435: warning: non-varargs call of varargs method with inexact argument type for last parameter;
      
          createParquetFile(0, TOTAL_RECORDS, null);
      
                                              ^
      
        cast to ColumnGenerator for a varargs call
      
        cast to ColumnGenerator[] for a non-varargs call and to suppress this warning
      

      It is kind of annoying and would be very easy to fix.

      Attachments

        1. SQOOP-3303.patch
          2 kB
          Vasas Szabolcs

        Issue Links

          Activity

            People

              vasas Vasas Szabolcs
              vasas Vasas Szabolcs
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: