Remove deprecated declarations from project code, cleanup usages

This commit is contained in:
Alexander Udalov
2017-03-21 12:39:30 +03:00
parent 6a049c9ab5
commit 579238c3be
16 changed files with 18 additions and 59 deletions
@@ -45,7 +45,6 @@ import org.jetbrains.kotlin.types.TypeUtils
import org.jetbrains.kotlin.types.typeUtil.isBooleanOrNullableBoolean
import org.jetbrains.kotlin.types.typeUtil.makeNotNullable
import org.jetbrains.kotlin.utils.addIfNotNull
import org.jetbrains.kotlin.utils.addToStdlib.singletonOrEmptySet
import java.util.*
interface InheritanceItemsSearcher {
@@ -118,7 +117,7 @@ class SmartCompletion(
if (operationToken == KtTokens.EQ || operationToken in COMPARISON_TOKENS) {
val left = parent.left
if (left is KtReferenceExpression) {
return@lazy bindingContext[BindingContext.REFERENCE_TARGET, left].singletonOrEmptySet()
return@lazy bindingContext[BindingContext.REFERENCE_TARGET, left]?.let(::setOf).orEmpty()
}
}
}