Skip to content

Commit

Permalink
Disable some Errorprone checks in J2KT generated code.
Browse files Browse the repository at this point in the history
These checks are meant to be applied on actual code and was missed in the original CL.

PiperOrigin-RevId: 718042541
  • Loading branch information
gkdn authored and copybara-github committed Jan 21, 2025
1 parent 3db6fd0 commit 8ae94c1
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions build_defs/internal_do_not_use/j2kt_generate_unit_test.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,11 @@ def j2kt_generate_unit_test(name, test_class, deps, platform = "J2KT-JVM", tags
"//build_defs/internal_do_not_use:internal_junit_annotations-j2kt-jvm",
],
exports = deps,
javacopts = ["-AtestPlatform=J2KT-JVM"],
javacopts = [
"-AtestPlatform=J2KT-JVM",
# Disable error prone checks since this is a generated code.
"-Xep:PackageLocation:OFF",
],
testonly = 1,
tags = tags,
)
Expand All @@ -51,7 +55,11 @@ def j2kt_generate_unit_test(name, test_class, deps, platform = "J2KT-JVM", tags
"//build_defs/internal_do_not_use:internal_junit_annotations-j2kt-native",
],
exports = deps,
javacopts = ["-AtestPlatform=J2KT-NATIVE"],
javacopts = [
"-AtestPlatform=J2KT-NATIVE",
# Disable error prone checks since this is a generated code.
"-Xep:PackageLocation:OFF",
],
testonly = 1,
tags = tags,
)
Expand Down

0 comments on commit 8ae94c1

Please sign in to comment.