Fixed some mis-merged files.

pull/9834/head
Joshua Haberman 3 years ago
parent f80137c46d
commit a2a0c3c118
  1. 4
      ruby/src/main/java/com/google/protobuf/jruby/RubyDescriptor.java
  2. 1
      ruby/src/main/java/com/google/protobuf/jruby/RubyMessage.java

@ -215,8 +215,8 @@ public class RubyDescriptor extends RubyObject {
klass.include(new IRubyObject[] {messageExts});
klass.instance_variable_set(runtime.newString(Utils.DESCRIPTOR_INSTANCE_VAR), this);
klass.defineAnnotatedMethods(RubyMessage.class);
// Workaround for https://github.com/jruby/jruby/issues/7154
klass.searchMethod("respond_to?").setIsBuiltin(false);
// Workaround for https://github.com/jruby/jruby/issues/7154
klass.searchMethod("respond_to?").setIsBuiltin(false);
return klass;
}

@ -860,7 +860,6 @@ public class RubyMessage extends RubyObject {
this.builder.getDescriptorForType().findFieldByName(TYPE);
if (typeBytesSymbol.equals(fields.get(enumFieldDescriptorForType))) {
isDefaultStringForBytes = true;
}
}
}
builder.setField(

Loading…
Cancel
Save