Remove deprecated isNullOrEmpty declaration, fixed usage.

This commit is contained in:
Ilya Gorbunov
2015-04-02 15:39:50 +03:00
parent 61726fdcb7
commit 51321c8b36
2 changed files with 1 additions and 4 deletions
@@ -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