diff options
author | Ben Podgursky <bpodgursky@gmail.com> | 2018-04-16 23:21:46 -0700 |
---|---|---|
committer | Duru Can Celasun <can@dcc.im> | 2018-04-17 07:21:46 +0100 |
commit | 50bfc56d5d337a08a2dd3a6f60b0ed656719c6ed (patch) | |
tree | 8b44d87643d2cdbadd30d13cd66baa2339c59aa5 /test/UnsafeTypes.thrift | |
parent | c564651dd404d7e9ff6bf7e5b343f429b9e52082 (diff) | |
download | thrift-50bfc56d5d337a08a2dd3a6f60b0ed656719c6ed.tar.gz |
THRIFT-4555 Optionally disable copies of binary fields in constructors, getters and setters.
Client: java
This closes #1540.
Diffstat (limited to 'test/UnsafeTypes.thrift')
-rw-r--r-- | test/UnsafeTypes.thrift | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/test/UnsafeTypes.thrift b/test/UnsafeTypes.thrift new file mode 100644 index 000000000..b38c905eb --- /dev/null +++ b/test/UnsafeTypes.thrift @@ -0,0 +1,24 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +namespace java thrift.test + +struct UnsafeBytes { + 1: binary bytes; +} |