Files
codeql/java/ql/test-kotlin/library-tests/arrays/arrayIterators.ql
Anders Fugmann f458cd60ca unify Kotlin test suites: rename test-kotlin2 to test-kotlin
Rename java/ql/test-kotlin2 to java/ql/test-kotlin (codeql/java-kotlin-tests)
and delete java/ql/test-kotlin1. The unified suite is the K2 test suite
(test-kotlin2) with expected files already updated by the preceding extractor
commits to converge K1 and K2 output.

The suite runs in both language modes via the test runner:
  * K1 mode  — CODEQL_KOTLIN_LEGACY_TEST_EXTRACTION_KOTLIN2 unset  → -language-version 1.9
  * K2 mode  — CODEQL_KOTLIN_LEGACY_TEST_EXTRACTION_KOTLIN2=true   → -language-version 2.0

Update CODEOWNERS and labeler.yml to reference test-kotlin.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-07-09 15:59:10 +02:00

11 lines
253 B
Plaintext

import java
query predicate iterator(MethodCall ma, string mn, string t) {
exists(Method m |
ma.getMethod() = m and
m.getName() = "iterator" and
mn = m.getSignature() and
t = ma.getMethod().getDeclaringType().getQualifiedName()
)
}