Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 805b548

Browse files
smowtonigfoo
authored andcommitted
KotlinType: accept non-class-or-interface Java types
1 parent 1d95431 commit 805b548

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

java/ql/lib/semmle/code/java/KotlinType.qll

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,18 +9,18 @@ class KotlinType extends Element, @kt_type {
99

1010
class KotlinNullableType extends KotlinType, @kt_nullable_type {
1111
override string toString() {
12-
exists(ClassOrInterface ci |
13-
kt_nullable_types(this, ci) and
14-
result = "Kotlin nullable " + ci.toString())
12+
exists(RefType javaType |
13+
kt_nullable_types(this, javaType) and
14+
result = "Kotlin nullable " + javaType.toString())
1515
}
1616
override string getAPrimaryQlClass() { result = "KotlinNullableType" }
1717
}
1818

1919
class KotlinNotnullType extends KotlinType, @kt_notnull_type {
2020
override string toString() {
21-
exists(ClassOrInterface ci |
22-
kt_notnull_types(this, ci) and
23-
result = "Kotlin not-null " + ci.toString())
21+
exists(RefType javaType |
22+
kt_notnull_types(this, javaType) and
23+
result = "Kotlin not-null " + javaType.toString())
2424
}
2525
override string getAPrimaryQlClass() { result = "KotlinNotnullType" }
2626
}

0 commit comments

Comments
 (0)