summaryrefslogtreecommitdiff
path: root/test/AnnotationTest.thrift
diff options
context:
space:
mode:
authorJens Geyer <jensg@apache.org>2020-08-04 23:09:14 +0200
committerJens Geyer <jensg@apache.org>2020-08-05 11:55:00 +0200
commit68c1506715d834c5ab274a622a67bab207936ac7 (patch)
tree6f51b8289651a568e71fb6611e79de5fef76d87d /test/AnnotationTest.thrift
parentb93fafd327f6de0f4c7496da5dfd5e8c5d8fe499 (diff)
downloadthrift-68c1506715d834c5ab274a622a67bab207936ac7.tar.gz
THRIFT-5261 Support for deprecated methods (via annotation)
Client: Delphi Patch: Jens Geyer This closes #2213
Diffstat (limited to 'test/AnnotationTest.thrift')
-rw-r--r--test/AnnotationTest.thrift8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/AnnotationTest.thrift b/test/AnnotationTest.thrift
index 7e24e1ccb..925832255 100644
--- a/test/AnnotationTest.thrift
+++ b/test/AnnotationTest.thrift
@@ -70,3 +70,11 @@ service foo_service {
void foo() ( foo = "bar" )
} (a.b="c")
+service deprecate_everything {
+ void Foo( ) ( deprecated = "This method has neither 'x' nor \"y\"" )
+ void Bar( ) ( deprecated = "Fails to deliver 中文 колбаса" )
+ void Baz( ) ( deprecated = "Need this to work with tabs (\t) or Umlauts (äöüÄÖÜß) too" )
+ void Deprecated() ( deprecated ) // no comment
+}
+
+