Skip to content

Commit 80337cb

Browse files
zhangskzmkruskal-google
authored andcommitted
Automated rollback of commit 30b6251.
PiperOrigin-RevId: 586513152
1 parent 3e61525 commit 80337cb

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

java/core/src/main/java/com/google/protobuf/GeneratedMessageV3.java

+1-5
Original file line numberDiff line numberDiff line change
@@ -2459,11 +2459,7 @@ public void clear(final GeneratedMessageV3.Builder<?> builder) {
24592459
final String containingOneofCamelCaseName) {
24602460
isOneofField =
24612461
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);
2462+
hasHasMethod = descriptor.hasPresence();
24672463
ReflectionInvoker reflectionInvoker =
24682464
new ReflectionInvoker(
24692465
descriptor,

0 commit comments

Comments
 (0)