Skip to content

Commit 575d5a3

Browse files
committed
fix tools:lint
1 parent 9d9b6fe commit 575d5a3

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

tools/lint/lint.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ plugins {
1616
id 'org.jetbrains.kotlin.jvm'
1717
}
1818

19-
def lintVersion = '26.4.1'
19+
def lintVersion = '30.2.2'
2020

2121
dependencies {
2222
compileOnly "org.jetbrains.kotlin:kotlin-stdlib:$kotlinVersion"

tools/lint/src/main/kotlin/KotlinInteropDetector.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -493,7 +493,7 @@ class KotlinInteropDetector : Detector(), SourceCodeScanner {
493493
node.modifierList?.hasModifierProperty(PsiModifier.FINAL) == true) {
494494
return
495495
}
496-
for (annotation in node.annotations) {
496+
for (annotation in node.uAnnotations) {
497497
val name = annotation.qualifiedName ?: continue
498498

499499
if (isNullableAnnotation(name)) {

tools/lint/src/main/kotlin/NonAndroidxNullabilityDetector.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ class NonAndroidxNullabilityDetector : Detector(), SourceCodeScanner {
9393
}
9494

9595
private fun doVisit(node: UDeclaration) {
96-
for (annotation in node.annotations) {
96+
for (annotation in node.uAnnotations) {
9797
ensureAndroidNullability(context, annotation)
9898
}
9999
}

0 commit comments

Comments
 (0)