[
https://issues.apache.org/jira/browse/THRIFT-2794?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14952006#comment-14952006
]
ASF GitHub Bot commented on THRIFT-2794:
----------------------------------------
GitHub user aaudiber opened a pull request:
https://github.com/apache/thrift/pull/649
THRIFT-2794 Suppress warnings in autogenerated Java files
Client: Java
Most importantly, this will ignore "unused" warnings.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/aaudiber/thrift THRIFT-2794
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/thrift/pull/649.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #649
----
commit 48420e431f3cd8f001464c9ff837b929c67207e2
Author: Andrew Audibert <[email protected]>
Date: 2015-10-10T19:21:26Z
THRIFT-2794 Suppress warnings in autogenerated Java files
Client: Java
----
> 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, 1.0
> 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
(v6.3.4#6332)