Emit a newline after `@file:Suppress("DEPRECATION")`

PiperOrigin-RevId: 492585270
pull/11138/head
nickreid 2 years ago committed by Copybara-Service
parent e535f95976
commit 47aecb734b
  1. 4
      src/google/protobuf/compiler/java/file.cc

@ -697,7 +697,7 @@ void FileGenerator::GenerateKotlin(io::Printer* printer) {
"filename", file_->name());
printer->Print(
"// Generated files should ignore deprecation warnings\n"
"@file:Suppress(\"DEPRECATION\")");
"@file:Suppress(\"DEPRECATION\")\n");
if (!java_package_.empty()) {
printer->Print(
"package $package$;\n"
@ -734,7 +734,7 @@ void FileGenerator::GenerateKotlinSiblings(
"filename", descriptor->file()->name());
printer.Print(
"// Generated files should ignore deprecation warnings\n"
"@file:Suppress(\"DEPRECATION\")");
"@file:Suppress(\"DEPRECATION\")\n");
if (!java_package_.empty()) {
printer.Print(
"package $package$;\n"

Loading…
Cancel
Save