diff --git a/src/google/protobuf/compiler/java/shared_code_generator.cc b/src/google/protobuf/compiler/java/shared_code_generator.cc index ddbdda5ac738..619da6fb74c8 100644 --- a/src/google/protobuf/compiler/java/shared_code_generator.cc +++ b/src/google/protobuf/compiler/java/shared_code_generator.cc @@ -88,7 +88,7 @@ void SharedCodeGenerator::Generate( " /* This variable is to be called by generated code only. It " "returns\n" " * an incomplete descriptor for internal use only. */\n" - " public static com.google.protobuf.Descriptors.FileDescriptor\n" + " public static final com.google.protobuf.Descriptors.FileDescriptor\n" " descriptor;\n", "classname", classname); printer->Annotate("classname", file_->name());