sqoop-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF subversion and git services (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (SQOOP-3303) Fix warnings during Sqoop compilation
Date Sun, 25 Mar 2018 15:30:00 GMT

    [ https://issues.apache.org/jira/browse/SQOOP-3303?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16413073#comment-16413073
] 

ASF subversion and git services commented on SQOOP-3303:
--------------------------------------------------------

Commit 7186b9d654c54fbe575e273c0a182307d3d48893 in sqoop's branch refs/heads/trunk from [~BoglarkaEgyed]
[ https://git-wip-us.apache.org/repos/asf?p=sqoop.git;h=7186b9d ]

SQOOP-3303: Fix warnings during Sqoop compilation

(Szabolcs Vasas via Boglarka Egyed)


> 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
>         Attachments: SQOOP-3303.patch
>
>
> 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)

Mime
View raw message