Suresh Marru created THRIFT-3045:
------------------------------------

             Summary: 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)

Reply via email to