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:
Ilya Gorbunov
2016-09-22 21:51:49 +03:00
parent 45d42bdff8
commit 5042158df5
6 changed files with 45 additions and 25 deletions
@@ -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()