From f16c59c5a86150dc511cb484574eb409b222475c Mon Sep 17 00:00:00 2001 From: Mark Hansen Date: Thu, 23 May 2024 17:03:16 -0700 Subject: [PATCH] Remove unused constructor argument "descriptor" from GeneratedMessage.RepeatedFieldAccessor.ReflectionInvoker PiperOrigin-RevId: 636723040 --- .../src/main/java/com/google/protobuf/GeneratedMessage.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/java/core/src/main/java/com/google/protobuf/GeneratedMessage.java b/java/core/src/main/java/com/google/protobuf/GeneratedMessage.java index 1ed3add663..c9f1abdeee 100644 --- a/java/core/src/main/java/com/google/protobuf/GeneratedMessage.java +++ b/java/core/src/main/java/com/google/protobuf/GeneratedMessage.java @@ -2501,7 +2501,6 @@ public abstract class GeneratedMessage extends AbstractMessage implements Serial private final Method clearMethod; ReflectionInvoker( - final FieldDescriptor descriptor, final String camelCaseName, final Class messageClass, final Class> builderClass) { @@ -2578,7 +2577,7 @@ public abstract class GeneratedMessage extends AbstractMessage implements Serial final Class messageClass, final Class> builderClass) { ReflectionInvoker reflectionInvoker = - new ReflectionInvoker(descriptor, camelCaseName, messageClass, builderClass); + new ReflectionInvoker(camelCaseName, messageClass, builderClass); type = reflectionInvoker.getRepeatedMethod.getReturnType(); invoker = getMethodInvoker(reflectionInvoker); }