Automated rollback of commit 30b6251dea.

PiperOrigin-RevId: 586513152
pull/14893/head
Sandy Zhang 1 year ago committed by Mike Kruskal
parent 3e61525e6b
commit 80337cb884
  1. 6
      java/core/src/main/java/com/google/protobuf/GeneratedMessageV3.java

@ -2459,11 +2459,7 @@ public abstract class GeneratedMessageV3 extends AbstractMessage implements Seri
final String containingOneofCamelCaseName) {
isOneofField =
descriptor.getRealContainingOneof() != null;
hasHasMethod =
descriptor.getFile().getSyntax() == FileDescriptor.Syntax.EDITIONS && descriptor.hasPresence()
|| descriptor.getFile().getSyntax() == FileDescriptor.Syntax.PROTO2
|| descriptor.hasOptionalKeyword()
|| (!isOneofField && descriptor.getJavaType() == FieldDescriptor.JavaType.MESSAGE);
hasHasMethod = descriptor.hasPresence();
ReflectionInvoker reflectionInvoker =
new ReflectionInvoker(
descriptor,

Loading…
Cancel
Save