ensure that the short name of the Kotlin unused import inspection does not clash with Java (KT-10046)

This commit is contained in:
Dmitry Jemerov
2015-11-17 15:12:51 +01:00
parent c84b22396b
commit 30084dff9d
5 changed files with 9 additions and 4 deletions

View File

@@ -0,0 +1,5 @@
<html>
<body>
Reports any <b>import</b> statements in Kotlin code that are unused.
</body>
</html>

View File

@@ -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"

View File

@@ -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>? {

View File

@@ -1 +1 @@
// INSPECTION_CLASS: org.jetbrains.kotlin.idea.inspections.UnusedImportInspection
// INSPECTION_CLASS: org.jetbrains.kotlin.idea.inspections.KotlinUnusedImportInspection

View File

@@ -1 +1 @@
org.jetbrains.kotlin.idea.inspections.UnusedImportInspection
org.jetbrains.kotlin.idea.inspections.KotlinUnusedImportInspection