You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@thrift.apache.org by "Andrew Gaul (JIRA)" <ji...@apache.org> on 2013/10/14 22:23:44 UTC
[jira] [Updated] (THRIFT-2227) Thrift compiler generates spurious
warnings with Xlint
[ https://issues.apache.org/jira/browse/THRIFT-2227?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Andrew Gaul updated THRIFT-2227:
--------------------------------
Attachment: THRIFT-2227.patch
Also available at:
https://github.com/apache/thrift/pull/58
> Thrift compiler generates spurious warnings with Xlint
> ------------------------------------------------------
>
> Key: THRIFT-2227
> URL: https://issues.apache.org/jira/browse/THRIFT-2227
> Project: Thrift
> Issue Type: Bug
> Components: Java - Compiler
> Affects Versions: 0.9
> Reporter: Andrew Gaul
> Priority: Minor
> Fix For: 0.9.2
>
> Attachments: THRIFT-2227.patch
>
>
> Sample warnings:
> {{noformat}}
> [WARNING] /home/gaul/work/cloud/common-thrift/target/generated-sources/thrift/com/maginatics/raptor/metadata/thrift/Sid.java:[45,44] found raw type: org.apache.thrift.scheme.IScheme
> missing type arguments for generic class org.apache.thrift.scheme.IScheme<T>
> [WARNING] /home/gaul/work/cloud/common-thrift/target/generated-sources/thrift/com/maginatics/raptor/metadata/thrift/Sid.java:[45,107] found raw type: org.apache.thrift.scheme.IScheme
> missing type arguments for generic class org.apache.thrift.scheme.IScheme<T>
> [WARNING] /home/gaul/work/cloud/common-thrift/target/generated-sources/thrift/com/maginatics/raptor/metadata/thrift/Sid.java:[281,37] unchecked cast
> required: java.util.List<java.lang.Long>
> found: java.lang.Object
> [WARNING] /home/gaul/work/cloud/common-thrift/target/generated-sources/thrift/com/maginatics/raptor/metadata/thrift/Sid.java:[431,52] unchecked call to read(org.apache.thrift.protocol.TProtocol,T) as a member of the raw type org.apache.thrift.scheme.IScheme
> [WARNING] /home/gaul/work/cloud/common-thrift/target/generated-sources/thrift/com/maginatics/raptor/metadata/thrift/Sid.java:[435,53] unchecked call to write(org.apache.thrift.protocol.TProtocol,T) as a member of the raw type org.apache.thrift.scheme.IScheme
> [WARNING] /home/gaul/work/cloud/common-thrift/target/generated-sources/thrift/com/maginatics/raptor/metadata/thrift/Sid.java:[501,30] getScheme() in com.maginatics.raptor.metadata.thrift.Sid.SidStandardSchemeFactory implements <S>getScheme() in org.apache.thrift.scheme.SchemeFactory
> return type requires unchecked conversion from com.maginatics.raptor.metadata.thrift.Sid.SidStandardScheme to S
> [WARNING] /home/gaul/work/cloud/common-thrift/target/generated-sources/thrift/com/maginatics/raptor/metadata/thrift/Sid.java:[597,27] getScheme() in com.maginatics.raptor.metadata.thrift.Sid.SidTupleSchemeFactory implements <S>getScheme() in org.apache.thrift.scheme.SchemeFactory
> return type requires unchecked conversion from com.maginatics.raptor.metadata.thrift.Sid.SidTupleScheme to S
> [WARNING] /home/gaul/work/cloud/common-thrift/target/generated-sources/thrift/com/maginatics/raptor/metadata/thrift/Sid.java:[38,8] serializable class com.maginatics.raptor.metadata.thrift.Sid has no definition of serialVersionUID
> {{noformat}}
--
This message was sent by Atlassian JIRA
(v6.1#6144)