mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-03-29 00:21:31 +00:00
ensure that the short name of the Kotlin unused import inspection does not clash with Java (KT-10046)
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
<html>
|
||||
<body>
|
||||
Reports any <b>import</b> statements in Kotlin code that are unused.
|
||||
</body>
|
||||
</html>
|
||||
@@ -1226,7 +1226,7 @@
|
||||
level="WARNING"
|
||||
/>
|
||||
|
||||
<localInspection implementationClass="org.jetbrains.kotlin.idea.inspections.UnusedImportInspection"
|
||||
<localInspection implementationClass="org.jetbrains.kotlin.idea.inspections.KotlinUnusedImportInspection"
|
||||
displayName="Unused import directive"
|
||||
groupName="Kotlin"
|
||||
enabledByDefault="true"
|
||||
|
||||
@@ -50,7 +50,7 @@ import org.jetbrains.kotlin.psi.KtFile
|
||||
import org.jetbrains.kotlin.resolve.ImportPath
|
||||
import java.util.*
|
||||
|
||||
class UnusedImportInspection : AbstractKotlinInspection() {
|
||||
class KotlinUnusedImportInspection : AbstractKotlinInspection() {
|
||||
override fun runForWholeFile() = true
|
||||
|
||||
override fun checkFile(file: PsiFile, manager: InspectionManager, isOnTheFly: Boolean): Array<out ProblemDescriptor>? {
|
||||
@@ -1 +1 @@
|
||||
// INSPECTION_CLASS: org.jetbrains.kotlin.idea.inspections.UnusedImportInspection
|
||||
// INSPECTION_CLASS: org.jetbrains.kotlin.idea.inspections.KotlinUnusedImportInspection
|
||||
|
||||
@@ -1 +1 @@
|
||||
org.jetbrains.kotlin.idea.inspections.UnusedImportInspection
|
||||
org.jetbrains.kotlin.idea.inspections.KotlinUnusedImportInspection
|
||||
Reference in New Issue
Block a user