Internal change.

PiperOrigin-RevId: 654315587
pull/17534/head
Éamonn McManus 4 months ago committed by Copybara-Service
parent 74f6da4d26
commit 630dbfc964
  1. 4
      src/google/protobuf/compiler/java/lite/message.cc

@ -260,6 +260,10 @@ void ImmutableMessageLiteGenerator::Generate(io::Printer* printer) {
"}\n"
"\n");
}
if (!context_->options().opensource_runtime) {
printer->Print(
"@com.google.protobuf.Internal.ProtoMethodMayReturnNull\n");
}
printer->Print(
vars,
"public static $oneof_capitalized_name$Case forNumber(int value) {\n"

Loading…
Cancel
Save