Kotlin: Fix bazel format and address copilot review comments

This commit is contained in:
Anders Fugmann
2025-12-05 09:21:39 +01:00
parent cc25d30fed
commit b8d01ed21b
3 changed files with 2 additions and 5 deletions

View File

@@ -124,8 +124,6 @@ kt_javac_options(
javac_opts = ":javac-options",
kotlinc_opts = ":kotlinc-options-%s" % v,
module_name = "codeql-kotlin-extractor",
# resource_strip_prefix is very nit-picky: the following makes it work from
# `codeql`, `@codeql_kotlin_embeddable` and `semmle-code`
resources = [
":resources-%s" % v,
],

View File

@@ -2975,7 +2975,7 @@ open class KotlinFileExtractor(
val locId = tw.getLocation(s)
tw.writeStmts_block(blockId, parent, idx, callable)
tw.writeHasLocation(blockId, locId)
// For Kotlin < 2.3, s.deligate is not-nullable. Cast to a be nullable,
// For Kotlin < 2.3, s.delegate is not-nullable. Cast to a be nullable,
// as a workaround to silence warnings for kotlin < 2.3 about the elvis
// operator being redundant.
// For Kotlin >= 2.3, the cast is redundant, so we need to silence that warning