commit | f8407d329d3c9a0adb7228a9869b768e58457872 | [log] [tgz] |
---|---|---|
author | Cole Faust <[email protected]> | Thu Jul 21 23:57:25 2022 +0000 |
committer | Automerger Merge Worker <[email protected]> | Thu Jul 21 23:57:25 2022 +0000 |
tree | dd67f030d7fb37006afb71cd0acce08f5cc8e819 | |
parent | 624c4237f0d273a646163984ad8a6f555d6bb0aa [diff] | |
parent | ee353dc7299546074e0acfb6c6e9fa9b9dd44e85 [diff] |
Add -Xjvm-default=all to JavaKotlinApiFinder am: ee353dc729 Original change: https://android-review.googlesource.com/c/platform/tools/apifinder/+/2163556 Change-Id: Ia8c50b963100eb0be27f575166c5d8c8c88ef5b7 Signed-off-by: Automerger Merge Worker <[email protected]>
diff --git a/checks/src/main/java/com/android/apifinder/ApiFinderDetector.kt b/checks/src/main/java/com/android/apifinder/ApiFinderDetector.kt index 5132fcf..3d68727 100644 --- a/checks/src/main/java/com/android/apifinder/ApiFinderDetector.kt +++ b/checks/src/main/java/com/android/apifinder/ApiFinderDetector.kt
@@ -1,4 +1,4 @@ -package com.android.apifinder +package com.google.android.apifinder import com.android.tools.lint.client.api.UElementHandler import com.android.tools.lint.detector.api.*
diff --git a/checks/src/main/java/com/android/apifinder/ApiFinderIssueRegistry.kt b/checks/src/main/java/com/android/apifinder/ApiFinderIssueRegistry.kt index f2f91e2..0bd1b3a 100644 --- a/checks/src/main/java/com/android/apifinder/ApiFinderIssueRegistry.kt +++ b/checks/src/main/java/com/android/apifinder/ApiFinderIssueRegistry.kt
@@ -1,12 +1,13 @@ -package com.android.apifinder +package com.google.android.apifinder import com.android.tools.lint.client.api.IssueRegistry +import com.android.tools.lint.detector.api.CURRENT_API import com.google.auto.service.AutoService @AutoService(IssueRegistry::class) @Suppress("UnstableApiUsage") class ApiFinderIssueRegistry : IssueRegistry() { override val api: Int - get() = 7 + get() = CURRENT_API override val issues = listOf(ApiFinderDetector.ISSUE) }
diff --git a/checks/src/test/java/com/android/apifinder/ApiFinderDetectorTest.kt b/checks/src/test/java/com/android/apifinder/ApiFinderDetectorTest.kt index 397fe07..f9dd466 100644 --- a/checks/src/test/java/com/android/apifinder/ApiFinderDetectorTest.kt +++ b/checks/src/test/java/com/android/apifinder/ApiFinderDetectorTest.kt
@@ -1,4 +1,4 @@ -package com.android.apifinder +package com.google.android.apifinder import com.android.tools.lint.checks.infrastructure.LintDetectorTest import com.android.tools.lint.detector.api.Detector