Fixed warnings
This commit is contained in:
@@ -48,7 +48,7 @@ class NotImportedWeigher(private val classifier: ImportableFqNameClassifier) : L
|
|||||||
notToBeUsedInKotlin
|
notToBeUsedInKotlin
|
||||||
}
|
}
|
||||||
|
|
||||||
override fun weigh(element: LookupElement): Weight {
|
override fun weigh(element: LookupElement): Comparable<*> {
|
||||||
if (element.getUserData(NOT_IMPORTED_KEY) == null) return Weight.default
|
if (element.getUserData(NOT_IMPORTED_KEY) == null) return Weight.default
|
||||||
val o = element.`object` as? DeclarationLookupObject
|
val o = element.`object` as? DeclarationLookupObject
|
||||||
val fqName = o?.importableFqName ?: return Weight.default
|
val fqName = o?.importableFqName ?: return Weight.default
|
||||||
@@ -69,7 +69,7 @@ class ImportedWeigher(private val classifier: ImportableFqNameClassifier) : Look
|
|||||||
allUnderImport
|
allUnderImport
|
||||||
}
|
}
|
||||||
|
|
||||||
override fun weigh(element: LookupElement): Weight? {
|
override fun weigh(element: LookupElement): Comparable<*>? {
|
||||||
val o = element.`object` as? DeclarationLookupObject
|
val o = element.`object` as? DeclarationLookupObject
|
||||||
val fqName = o?.importableFqName ?: return null
|
val fqName = o?.importableFqName ?: return null
|
||||||
return when (classifier.classify(fqName, o is PackageLookupObject)) {
|
return when (classifier.classify(fqName, o is PackageLookupObject)) {
|
||||||
|
|||||||
Reference in New Issue
Block a user