Code cleanup: several inspections applied

This commit is contained in:
Mikhail Glukhikh
2017-06-27 14:26:19 +03:00
committed by Mikhail Glukhikh
parent fdca96634e
commit 840847e47c
76 changed files with 121 additions and 147 deletions
@@ -80,7 +80,7 @@ class MockKotlinClassifier(override val fqName: FqName,
override val supertypes: Collection<JavaClassifierType>
get() = classOrObject.superTypeListEntries
.mapNotNull { superTypeListEntry ->
.map { superTypeListEntry ->
val userType = superTypeListEntry.typeAsUserType
arrayListOf<String>().apply {
userType?.referencedName?.let { add(it) }
@@ -45,12 +45,12 @@ class TreeBasedTypeParameter(
get() = false
override val upperBounds: Collection<JavaClassifierType>
get() = tree.bounds.map {
get() = tree.bounds.mapNotNull {
when (it) {
is JCTree.JCTypeApply -> TreeBasedGenericClassifierType(it, TreePath(treePath, it), javac)
is JCTree.JCIdent -> TreeBasedNonGenericClassifierType(it, TreePath(treePath, it), javac)
else -> null
}
}.filterNotNull()
}
}