THRIFT-2193 Java code generator emits spurious semicolon when deep copying binary data

Patch: Andrew Gaul  & Jens Geyer
This commit is contained in:
Jens Geyer 2013-11-11 23:17:17 +01:00
parent 4ccc24f621
commit b54fbd32cf

View File

@ -3997,7 +3997,7 @@ void t_java_generator::generate_deep_copy_non_container(ofstream& out, std::stri
(void) dest_name;
if (type->is_base_type() || type->is_enum() || type->is_typedef()) {
if (((t_base_type*)type)->is_binary()) {
out << "org.apache.thrift.TBaseHelper.copyBinary(" << source_name << ");" << endl;
out << "org.apache.thrift.TBaseHelper.copyBinary(" << source_name << ")";
} else {
// everything else can be copied directly
out << source_name;