From 64414ce984bc86e09b8724adbd01f1cb2646c17e Mon Sep 17 00:00:00 2001 From: Dmitry Jemerov Date: Fri, 29 May 2015 13:52:43 +0200 Subject: apply code cleanup; fix couple of deprecations manually --- src/Kotlin/DocumentationBuilder.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/Kotlin/DocumentationBuilder.kt') diff --git a/src/Kotlin/DocumentationBuilder.kt b/src/Kotlin/DocumentationBuilder.kt index b1a5903e..4af53d88 100644 --- a/src/Kotlin/DocumentationBuilder.kt +++ b/src/Kotlin/DocumentationBuilder.kt @@ -96,7 +96,7 @@ class DocumentationBuilder(val resolutionFacade: ResolutionFacade, } val name = descriptor.getName().asString() if (name == "equals" || name == "hashCode" || name == "toString") { - var deepestDescriptor = descriptor: CallableMemberDescriptor + var deepestDescriptor: CallableMemberDescriptor = descriptor while (!deepestDescriptor.getOverriddenDescriptors().isEmpty()) { deepestDescriptor = deepestDescriptor.getOverriddenDescriptors().first() } @@ -203,7 +203,7 @@ class DocumentationBuilder(val resolutionFacade: ResolutionFacade, return symbol } - fun KDocSection.getTags(): Array = PsiTreeUtil.getChildrenOfType(this, javaClass()) ?: array() + fun KDocSection.getTags(): Array = PsiTreeUtil.getChildrenOfType(this, javaClass()) ?: arrayOf() private fun MutableContent.addTagToSeeAlso(descriptor: DeclarationDescriptor, seeTag: KDocTag) { val subjectName = seeTag.getSubjectName() -- cgit