We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 294d639 commit 745e15bCopy full SHA for 745e15b
1 file changed
src/google/protobuf/compiler/java/full/extension.cc
@@ -132,10 +132,9 @@ int ImmutableExtensionGenerator::GenerateNonNestedInitializationCode(
132
int bytecode_estimate = 0;
133
if (descriptor_->extension_scope() == nullptr) {
134
// Only applies to non-nested extensions.
135
- printer->Print(
136
- "$name$.internalInit(descriptor.getExtensions().get($index$));\n",
137
- "name", UnderscoresToCamelCaseCheckReserved(descriptor_), "index",
138
- absl::StrCat(descriptor_->index()));
+ printer->Print("$name$.internalInit(descriptor.getExtension($index$));\n",
+ "name", UnderscoresToCamelCaseCheckReserved(descriptor_),
+ "index", absl::StrCat(descriptor_->index()));
139
bytecode_estimate += 21;
140
}
141
return bytecode_estimate;
0 commit comments