You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@thrift.apache.org by "Suresh Marru (JIRA)" <ji...@apache.org> on 2015/06/05 21:55:02 UTC

[jira] [Closed] (THRIFT-3045) Multiple SuppressWarnings in Generated Java Code

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

Suresh Marru closed THRIFT-3045.
--------------------------------
    Resolution: Invalid

Sorry this was an invalid issue. We had the supresswarnings all inserted by the script which was adding ASF license headers. Please ignore this issue. 

> Multiple SuppressWarnings in Generated Java Code
> ------------------------------------------------
>
>                 Key: THRIFT-3045
>                 URL: https://issues.apache.org/jira/browse/THRIFT-3045
>             Project: Thrift
>          Issue Type: Bug
>          Components: Java - Compiler
>    Affects Versions: 0.9.2
>         Environment: Thrift 0.9.2 on Mac OS X Yosemite - Home Brew installed version
>            Reporter: Suresh Marru
>
> Java generated code is adding two suppress warnings as follows:
> {code:java}
> @SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"})
> @Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-3-18")
> @SuppressWarnings("all")
> {code}
> The java_suppressions()  seems to be added in 0.9.2 which is right. But there is a default SuppressWarnings("all") getting added. One of it needs to be turned off. 



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)