You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@thrift.apache.org by ro...@apache.org on 2015/10/13 23:39:29 UTC

thrift git commit: THRIFT-2794 Suppress "unused" warnings in autogenerated Java files Client: Java

Repository: thrift
Updated Branches:
  refs/heads/master 22508c3c9 -> 2d3eff5d3


THRIFT-2794 Suppress "unused" warnings in autogenerated Java files Client: Java

Client: java
This closes #649


Project: http://git-wip-us.apache.org/repos/asf/thrift/repo
Commit: http://git-wip-us.apache.org/repos/asf/thrift/commit/2d3eff5d
Tree: http://git-wip-us.apache.org/repos/asf/thrift/tree/2d3eff5d
Diff: http://git-wip-us.apache.org/repos/asf/thrift/diff/2d3eff5d

Branch: refs/heads/master
Commit: 2d3eff5d387d9f8740dc5aec9ed77c2e05b4d284
Parents: 22508c3
Author: Andrew Audibert <aa...@gmail.com>
Authored: Sat Oct 10 12:21:26 2015 -0700
Committer: Roger Meier <ro...@apache.org>
Committed: Tue Oct 13 23:27:00 2015 +0200

----------------------------------------------------------------------
 compiler/cpp/src/generate/t_java_generator.cc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/thrift/blob/2d3eff5d/compiler/cpp/src/generate/t_java_generator.cc
----------------------------------------------------------------------
diff --git a/compiler/cpp/src/generate/t_java_generator.cc b/compiler/cpp/src/generate/t_java_generator.cc
index c4cbc45..f21e8fc 100644
--- a/compiler/cpp/src/generate/t_java_generator.cc
+++ b/compiler/cpp/src/generate/t_java_generator.cc
@@ -441,7 +441,7 @@ string t_java_generator::java_type_imports() {
 }
 
 string t_java_generator::java_suppressions() {
-  return "@SuppressWarnings({\"cast\", \"rawtypes\", \"serial\", \"unchecked\"})\n";
+  return "@SuppressWarnings({\"cast\", \"rawtypes\", \"serial\", \"unchecked\", \"unused\"})\n";
 }
 
 /**