Skip to content

Commit

Permalink
Generate the descriptor field as final.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 696870311
  • Loading branch information
cpovirk authored and copybara-github committed Nov 15, 2024
1 parent 261b16b commit 9f4fbc6
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 18 deletions.
17 changes: 0 additions & 17 deletions csharp/src/Google.Protobuf/Reflection/FeatureSetDescriptor.g.cs

This file was deleted.

2 changes: 1 addition & 1 deletion src/google/protobuf/compiler/java/shared_code_generator.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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());
Expand Down

0 comments on commit 9f4fbc6

Please sign in to comment.