KT-4945 Intention "Introduce static import" (for single symbol)
#KT-4945 Fixed
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
import javax.swing.SwingUtilities
|
||||
<spot>import javax.swing.SwingUtilities.invokeLater</spot>
|
||||
|
||||
fun foo() {
|
||||
<spot>invokeLater</spot> { }
|
||||
<spot>invokeLater</spot>()
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
import javax.swing.SwingUtilities
|
||||
|
||||
fun foo() {
|
||||
<spot>SwingUtilities.invokeLater</spot> { }
|
||||
<spot>SwingUtilities.invokeLater</spot>()
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
<html>
|
||||
<body>
|
||||
This intention converts qualified references to a Java static member, object member or enum class member
|
||||
into simple references and adds import directive for that symbol.
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user