Remove deprecated isNullOrEmpty declaration, fixed usage.
This commit is contained in:
@@ -122,7 +122,7 @@ class StaticMembers(
|
|||||||
presentation.setTailText(tailText, true)
|
presentation.setTailText(tailText, true)
|
||||||
}
|
}
|
||||||
|
|
||||||
if (presentation.getTypeText().isNullOrEmptyDeprecated()) {
|
if (presentation.getTypeText().isNullOrEmpty()) {
|
||||||
presentation.setTypeText(DescriptorRenderer.SHORT_NAMES_IN_TYPES.renderType(classDescriptor.getDefaultType()))
|
presentation.setTypeText(DescriptorRenderer.SHORT_NAMES_IN_TYPES.renderType(classDescriptor.getDefaultType()))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -261,9 +261,6 @@ fun LookupElementFactory.createLookupElement(
|
|||||||
fun <T : Any> T?.toList(): List<T> = if (this != null) listOf(this) else listOf()
|
fun <T : Any> T?.toList(): List<T> = if (this != null) listOf(this) else listOf()
|
||||||
fun <T : Any> T?.toSet(): Set<T> = if (this != null) setOf(this) else setOf()
|
fun <T : Any> T?.toSet(): Set<T> = if (this != null) setOf(this) else setOf()
|
||||||
|
|
||||||
deprecated("Use String?.isNullOrEmpty() from stdlib when available")
|
|
||||||
fun String?.isNullOrEmptyDeprecated() = this == null || this.isEmpty()
|
|
||||||
|
|
||||||
enum class SmartCompletionItemPriority {
|
enum class SmartCompletionItemPriority {
|
||||||
IT
|
IT
|
||||||
TRUE
|
TRUE
|
||||||
|
|||||||
Reference in New Issue
Block a user