git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@940861
13f79535-47bb-0310-9956-
ffa450edef68
indent(out) << "public boolean is" << get_cap_name("set") << cap_name << "() {" << endl;
indent_up();
if (type_can_be_null(type)) {
- indent(out) << "return this." << field_name << " != null";
- if (type->is_struct() && ((t_struct*)type)->is_union()) {
- out << " && this." << field_name << ".isSet()";
- }
- out << ";" << endl;
+ indent(out) << "return this." << field_name << " != null;" << endl;
} else {
indent(out) << "return __isset_bit_vector.get(" << isset_field_id(field) << ");" << endl;
}