aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Ogorodnik <sem-oro@yandex.ru>2016-12-14 17:30:08 +0300
committerGitHub <noreply@github.com>2016-12-14 17:30:08 +0300
commit51f984c6249213dd11efd7a95a7f143442b544bd (patch)
tree40d97e9609250f088574bfa0529684b7dc90d0e8
parentf8246d9e65f37ca64c136479d430abc8446aed98 (diff)
parent48167ef4c63e287868fc2a435de6822ede625df2 (diff)
downloaddokka-51f984c6249213dd11efd7a95a7f143442b544bd.tar.gz
dokka-51f984c6249213dd11efd7a95a7f143442b544bd.tar.bz2
dokka-51f984c6249213dd11efd7a95a7f143442b544bd.zip
Merge pull request #126 from Kotlin/0.9.11/GH-90
Fix for #90
-rw-r--r--core/src/main/kotlin/javadoc/docbase.kt6
1 files changed, 5 insertions, 1 deletions
diff --git a/core/src/main/kotlin/javadoc/docbase.kt b/core/src/main/kotlin/javadoc/docbase.kt
index eafa216b..65b28a42 100644
--- a/core/src/main/kotlin/javadoc/docbase.kt
+++ b/core/src/main/kotlin/javadoc/docbase.kt
@@ -209,8 +209,12 @@ open class TypeAdapter(override val module: ModuleNodeAdapter, override val node
override fun equals(other: Any?): Boolean = other is TypeAdapter && toString() == other.toString()
}
+class NotAnnotatedTypeAdapter(typeAdapter: AnnotatedTypeAdapter) : Type by typeAdapter {
+ override fun asAnnotatedType() = null
+}
+
class AnnotatedTypeAdapter(module: ModuleNodeAdapter, node: DocumentationNode) : TypeAdapter(module, node), AnnotatedType {
- override fun underlyingType(): Type? = this
+ override fun underlyingType(): Type? = NotAnnotatedTypeAdapter(this)
override fun annotations(): Array<out AnnotationDesc> = nodeAnnotations(this).toTypedArray()
}