Skip to content

Commit fbdfba3

Browse files
cpovirkcopybara-github
authored andcommitted
Generate the descriptor field as final.
PiperOrigin-RevId: 693754448
1 parent 5e1ba7f commit fbdfba3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/google/protobuf/compiler/java/shared_code_generator.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ void SharedCodeGenerator::Generate(
8888
" /* This variable is to be called by generated code only. It "
8989
"returns\n"
9090
" * an incomplete descriptor for internal use only. */\n"
91-
" public static com.google.protobuf.Descriptors.FileDescriptor\n"
91+
" public static final com.google.protobuf.Descriptors.FileDescriptor\n"
9292
" descriptor;\n",
9393
"classname", classname);
9494
printer->Annotate("classname", file_->name());

0 commit comments

Comments
 (0)