We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3e61525 commit 80337cbCopy full SHA for 80337cb
java/core/src/main/java/com/google/protobuf/GeneratedMessageV3.java
@@ -2459,11 +2459,7 @@ public void clear(final GeneratedMessageV3.Builder<?> builder) {
2459
final String containingOneofCamelCaseName) {
2460
isOneofField =
2461
descriptor.getRealContainingOneof() != null;
2462
- hasHasMethod =
2463
- descriptor.getFile().getSyntax() == FileDescriptor.Syntax.EDITIONS && descriptor.hasPresence()
2464
- || descriptor.getFile().getSyntax() == FileDescriptor.Syntax.PROTO2
2465
- || descriptor.hasOptionalKeyword()
2466
- || (!isOneofField && descriptor.getJavaType() == FieldDescriptor.JavaType.MESSAGE);
+ hasHasMethod = descriptor.hasPresence();
2467
ReflectionInvoker reflectionInvoker =
2468
new ReflectionInvoker(
2469
descriptor,
0 commit comments