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); }