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