|
|
|
@ -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, |
|
|
|
|