Determine automatically which types from java.lang is aliased in default imported kotlin packages and exclude them from imported java.lang.* scope.
This commit is contained in:
+1
-13
@@ -62,16 +62,4 @@ private val DEFAULT_IMPORTS_FOR_JVM: List<ImportPath> = ArrayList<ImportPath>().
|
||||
}
|
||||
}
|
||||
|
||||
private val EXCLUDED_IMPORTS_FOR_JVM: List<FqName> = listOf(
|
||||
"Error",
|
||||
"Exception",
|
||||
"RuntimeException",
|
||||
"IllegalArgumentException",
|
||||
"IllegalStateException",
|
||||
"IndexOutOfBoundsException",
|
||||
"UnsupportedOperationException",
|
||||
"NumberFormatException",
|
||||
"NullPointerException",
|
||||
"ClassCastException",
|
||||
"AssertionError"
|
||||
).map { FqName("java.lang.$it") }
|
||||
private val EXCLUDED_IMPORTS_FOR_JVM: List<FqName> = emptyList()
|
||||
Reference in New Issue
Block a user