File tree Expand file tree Collapse file tree 1 file changed +1
-5
lines changed
java/core/src/main/java/com/google/protobuf Expand file tree Collapse file tree 1 file changed +1
-5
lines changed Original file line number Diff line number Diff line change @@ -2459,11 +2459,7 @@ public void clear(final GeneratedMessageV3.Builder<?> builder) {
2459
2459
final String containingOneofCamelCaseName ) {
2460
2460
isOneofField =
2461
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 );
2462
+ hasHasMethod = descriptor .hasPresence ();
2467
2463
ReflectionInvoker reflectionInvoker =
2468
2464
new ReflectionInvoker (
2469
2465
descriptor ,
You can’t perform that action at this time.
0 commit comments