Fix indentation in lite message clear by adding newline

PiperOrigin-RevId: 686300005
pull/18790/head
Mark Hansen 2 months ago committed by Copybara-Service
parent c73b222911
commit 0a419d4ce6
  1. 34
      cmake/dependencies.cmake
  2. 2
      src/google/protobuf/compiler/java/lite/message_field.cc

@ -1,34 +0,0 @@
# Auto-generated by @//cmake:make_dependencies
#
# This file contains lists of external dependencies based on our Bazel
# config. It should be included from a hand-written CMake file that uses
# them.
#
# Changes to this file will be overwritten based on Bazel definitions.
if(${CMAKE_VERSION} VERSION_GREATER 3.10 OR ${CMAKE_VERSION} VERSION_EQUAL 3.10)
include_guard()
endif()
set(abseil-cpp-version "20230802.1")
set(bazel_skylib-version "1.7.0")
set(jsoncpp-version "1.9.5")
set(rules_cc-version "0.0.13")
set(rules_fuzzing-version "0.5.2")
set(rules_java-version "7.11.1")
set(rules_jvm_external-version "6.3")
set(rules_kotlin-version "1.9.6")
set(rules_license-version "1.0.0")
set(rules_pkg-version "1.0.1")
set(rules_python-version "0.28.0")
set(rules_rust-version "0.51.0")
set(platforms-version "0.0.8")
set(zlib-version "1.3.1")
set(bazel_features-version "1.17.0")
set(rules_shell-version "0.2.0")
set(googletest-version "1.14.0")
set(rules_buf-version "0.3.0")
set(rules_testing-version "0.6.0")
set(rules_proto-version "4.0.0")

@ -196,7 +196,7 @@ void ImmutableMessageFieldLiteGenerator::GenerateMembers(
// Field.Builder clearField() // Field.Builder clearField()
WriteFieldDocComment(printer, descriptor_, context_->options()); WriteFieldDocComment(printer, descriptor_, context_->options());
printer->Print(variables_, printer->Print(variables_,
"private void clear$capitalized_name$() {" "private void clear$capitalized_name$() {\n"
" $name$_ = null;\n" " $name$_ = null;\n"
" $clear_has_field_bit_message$\n" " $clear_has_field_bit_message$\n"
"}\n"); "}\n");

Loading…
Cancel
Save