Skip to content

Commit 702a2b3

Browse files
jketemaCopilot
andcommitted
Suppress only javac option warnings in the Kotlin extractor
Use -Xlint:-options for the Java 8 compatibility warnings instead of disabling all javac warnings. Other warnings retain the warnings-as-errors behavior inherited from Kotlin. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent fb57876 commit 702a2b3

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

‎java/kotlin-extractor/BUILD.bazel‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,8 +91,7 @@ _component_registrar_service = (
9191
kt_javac_options(
9292
name = "javac-options",
9393
release = "8",
94-
# Keep javac warnings separate from the Kotlin compiler's warn = "error".
95-
warn = "off",
94+
x_lint = ["-options"],
9695
)
9796

9897
[

0 commit comments

Comments
 (0)