Unused import highlighting
#KT-5236 Fixed
This commit is contained in:
+15
@@ -0,0 +1,15 @@
|
||||
import java.io.* // unused
|
||||
import java.sql.* // used
|
||||
|
||||
import java.util.HashMap // unused
|
||||
import java.util.ArrayList // used
|
||||
|
||||
import java.unresolved.* // unused but unresolved
|
||||
import java.net.Unresolved // unused but unresolved
|
||||
|
||||
import java.net.ConnectException as CE // highlighting of unused aliases not implemented yet
|
||||
|
||||
fun foo(list: ArrayList<String>) {
|
||||
list.add("")
|
||||
Date()
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
<problems>
|
||||
<problem>
|
||||
<file>file.kt</file>
|
||||
<line>1</line>
|
||||
<module>light_idea_test_case</module>
|
||||
<entry_point TYPE="file" FQNAME="simple.kt" />
|
||||
<problem_class severity="WARNING" attribute_key="NOT_USED_ELEMENT_ATTRIBUTES">Unused import directive</problem_class>
|
||||
<description>Unused import directive</description>
|
||||
</problem>
|
||||
|
||||
<problem>
|
||||
<file>file.kt</file>
|
||||
<line>4</line>
|
||||
<module>light_idea_test_case</module>
|
||||
<entry_point TYPE="file" FQNAME="simple.kt" />
|
||||
<problem_class severity="WARNING" attribute_key="NOT_USED_ELEMENT_ATTRIBUTES">Unused import directive</problem_class>
|
||||
<description>Unused import directive</description>
|
||||
</problem>
|
||||
|
||||
</problems>
|
||||
@@ -0,0 +1 @@
|
||||
// INSPECTION_CLASS: org.jetbrains.kotlin.idea.inspections.UnusedImportInspection
|
||||
Reference in New Issue
Block a user