[
https://issues.apache.org/jira/browse/SQOOP-3303?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Szabolcs Vasas updated SQOOP-3303:
----------------------------------
Summary: Fix warnings during Sqoop compilation (was: Fix warnings during
Sqoop compilaton)
> Fix warnings during Sqoop compilation
> -------------------------------------
>
> Key: SQOOP-3303
> URL: https://issues.apache.org/jira/browse/SQOOP-3303
> Project: Sqoop
> Issue Type: Task
> Affects Versions: 1.5.0
> Reporter: Szabolcs Vasas
> Assignee: Szabolcs Vasas
> Priority: Major
>
> Ant prints the following warning during every Sqoop compilation:
> {code:java}
> /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
> {code}
> It is kind of annoying and would be very easy to fix.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)