Remove unused constructor argument "descriptor" from GeneratedMessage.RepeatedFieldAccessor.ReflectionInvoker

PiperOrigin-RevId: 636723040
pull/16921/head
Mark Hansen 6 months ago committed by Copybara-Service
parent 5fa9c35315
commit f16c59c5a8
  1. 3
      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<? extends GeneratedMessage> messageClass,
final Class<? extends Builder<?>> builderClass) {
@ -2578,7 +2577,7 @@ public abstract class GeneratedMessage extends AbstractMessage implements Serial
final Class<? extends GeneratedMessage> messageClass,
final Class<? extends Builder<?>> builderClass) {
ReflectionInvoker reflectionInvoker =
new ReflectionInvoker(descriptor, camelCaseName, messageClass, builderClass);
new ReflectionInvoker(camelCaseName, messageClass, builderClass);
type = reflectionInvoker.getRepeatedMethod.getReturnType();
invoker = getMethodInvoker(reflectionInvoker);
}

Loading…
Cancel
Save