You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@thrift.apache.org by "James E. King III (JIRA)" <ji...@apache.org> on 2019/01/26 14:08:01 UTC

[jira] [Updated] (THRIFT-2794) generated Java code full of warnings

     [ https://issues.apache.org/jira/browse/THRIFT-2794?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

James E. King III updated THRIFT-2794:
--------------------------------------
    Affects Version/s:     (was: 1.0)

This issue was marked as affecting version 1.0 which is not possible.   If you know which version this issue was discovered in, please mark it as such.

> generated Java code full of warnings
> ------------------------------------
>
>                 Key: THRIFT-2794
>                 URL: https://issues.apache.org/jira/browse/THRIFT-2794
>             Project: Thrift
>          Issue Type: Bug
>          Components: Java - Compiler
>    Affects Versions: 0.9.1
>         Environment: Ubuntu 14.04
>            Reporter: Kevin
>            Priority: Minor
>
> The java code generated by thrift is full of warnings about unused imports and fields. With a lot of thrift generated classes, we're getting warnings we care about drowned out in the noise of generated code warnings (approx. 600).
> This small example generates about a half dozen unused imports:
> struct Publisher
> {
> 	1: optional string id,
> 	2: optional string name,
> 	3: optional list<string> cat,
> 	4: optional string domain
> }
> thrift --gen java -out . publisher.thrift 



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)