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

ASF subversion and git services commented on AVRO-1047:
-------------------------------------------------------

Commit b8c37b32256113bd64f35f0b97e673d74ef61db2 in avro's branch 
refs/heads/master from [~mkw]
[ https://git-wip-us.apache.org/repos/asf?p=avro.git;h=b8c37b3 ]

AVRO-1047: Java: Fix remaining javac warnings.

AVRO-1913 fixed most warnings, but missed a few unchecked usages and
left in some redundant casts.  This patch eliminates remaining
warnings even with the -Xlint:all flag added to javac.  With no more
warnings to surpress, the @SuppressWarnings("all") annotation is
removed from the generated code, as well.  The TestSpecificCompiler
test has been modified to pass -Xlint:all to the compiler and assert
that no warnings are present in compiled code.


> Generated Java classes for specific records contain unchecked casts
> -------------------------------------------------------------------
>
>                 Key: AVRO-1047
>                 URL: https://issues.apache.org/jira/browse/AVRO-1047
>             Project: Avro
>          Issue Type: Bug
>          Components: java
>    Affects Versions: 1.6.3
>            Reporter: Garrett Wu
>             Fix For: 1.9.0, 1.8.3
>
>         Attachments: AVRO-1047.patch, suppress-warnings.tar.gz
>
>
> The generated Java classes for specific records cause compiler warnings using 
> Oracle/Sun Java 1.6, since it doesn't support @SuppressWarnings("all"). 
> Instead could we change it to @SuppressWarnings("unchecked")? Only 
> "unchecked" and "deprecation" are mentioned Java Language Specification -- 
> the rest are specific to compiler vendors.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to