Remove unnecessary @SuppressWarnings("fallthrough")

This code doesn't fall through.

PiperOrigin-RevId: 686278377
pull/18786/head
Mark Hansen 1 month ago committed by Copybara-Service
parent ef91b0ef8b
commit 11b8c8ccf3
  1. 34
      cmake/dependencies.cmake
  2. 3
      src/google/protobuf/compiler/java/lite/message.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")

@ -328,8 +328,7 @@ void ImmutableMessageLiteGenerator::Generate(io::Printer* printer) {
printer->Print(
"@java.lang.Override\n"
"@java.lang.SuppressWarnings({\"ThrowNull\", \"unchecked\", "
"\"fallthrough\"})\n"
"@java.lang.SuppressWarnings({\"ThrowNull\", \"unchecked\"})\n"
"protected final java.lang.Object dynamicMethod(\n"
" com.google.protobuf.GeneratedMessageLite.MethodToInvoke method,\n"
" java.lang.Object arg0, java.lang.Object arg1) {\n"

Loading…
Cancel
Save