Skip to content

Commit

Permalink
Remove unnecessary @SuppressWarnings("unchecked")
Browse files Browse the repository at this point in the history
There are no unchecked conversions generated. The only cast is `(byte)`.

PiperOrigin-RevId: 686288520
  • Loading branch information
mhansen authored and copybara-github committed Oct 16, 2024
1 parent a4a277d commit cfb6f87
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 35 deletions.
34 changes: 0 additions & 34 deletions cmake/dependencies.cmake

This file was deleted.

2 changes: 1 addition & 1 deletion src/google/protobuf/compiler/java/lite/message.cc
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,7 @@ void ImmutableMessageLiteGenerator::Generate(io::Printer* printer) {

printer->Print(
"@java.lang.Override\n"
"@java.lang.SuppressWarnings({\"ThrowNull\", \"unchecked\"})\n"
"@java.lang.SuppressWarnings({\"ThrowNull\"})\n"
"protected final java.lang.Object dynamicMethod(\n"
" com.google.protobuf.GeneratedMessageLite.MethodToInvoke method,\n"
" java.lang.Object arg0, java.lang.Object arg1) {\n"
Expand Down

0 comments on commit cfb6f87

Please sign in to comment.