[
https://issues.apache.org/jira/browse/THRIFT-2794?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Sylwester Lachiewicz resolved THRIFT-2794.
------------------------------------------
Fix Version/s: 0.10.0
Resolution: Fixed
Resolving. {{t_java_generator.cc}} emits {{@SuppressWarnings({"cast",
"rawtypes", "serial", "unchecked", "unused"})}} on generated classes, which is
what PR #649 added in {{2d3eff5d3}}.
This stayed open only because the "is it resolved, and in what version?"
question from October 2016 was never answered. First released in 0.10.0.
_This comment was created with AI assistance._
> 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
> Fix For: 0.10.0
>
>
> 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
(v8.20.10#820010)