Code style setting for importing Java statics and enums with '*'

#KT-9592 Fixed
This commit is contained in:
Valentin Kipyatkov
2015-10-19 13:21:21 +03:00
parent 27228c2fcc
commit 115d7a2eae
19 changed files with 206 additions and 76 deletions
@@ -0,0 +1,5 @@
package ppp
enum class E {
A, B, C
}
+1
View File
@@ -0,0 +1 @@
// IMPORT: ppp.E.A
+3
View File
@@ -0,0 +1,3 @@
import ppp.E.A
// IMPORT: ppp.E.A
@@ -0,0 +1,5 @@
package ppp
enum class E {
A, B, C
}
+3
View File
@@ -0,0 +1,3 @@
// IMPORT: ppp.E.C
import ppp.E.A
import ppp.E.B
+2
View File
@@ -0,0 +1,2 @@
// IMPORT: ppp.E.C
import ppp.E.*
+1
View File
@@ -1,4 +1,5 @@
// IMPORT: dependency.MyObject.someFun
// NAME_COUNT_TO_USE_STAR_IMPORT_FOR_MEMBERS: 1
fun foo() {
someFun()
}
+1
View File
@@ -1,6 +1,7 @@
import dependency.MyObject.someFun
// IMPORT: dependency.MyObject.someFun
// NAME_COUNT_TO_USE_STAR_IMPORT_FOR_MEMBERS: 1
fun foo() {
someFun()
}
+1 -1
View File
@@ -1,3 +1,3 @@
import kotlin.Map.*
import kotlin.Map.Entry
// IMPORT: kotlin.Map.Entry