diff options
author | Simon Ogorodnik <Simon.Ogorodnik@jetbrains.com> | 2016-12-14 15:38:53 +0300 |
---|---|---|
committer | Simon Ogorodnik <Simon.Ogorodnik@jetbrains.com> | 2016-12-14 15:38:53 +0300 |
commit | 48167ef4c63e287868fc2a435de6822ede625df2 (patch) | |
tree | 979ee131d88da064bc49a912d79b3042f51e3d1f /core/src/main | |
parent | 7ddbe7c4eec6415fff6f68b89f194e1652a85bd1 (diff) | |
download | dokka-48167ef4c63e287868fc2a435de6822ede625df2.tar.gz dokka-48167ef4c63e287868fc2a435de6822ede625df2.tar.bz2 dokka-48167ef4c63e287868fc2a435de6822ede625df2.zip |
Fix for GH-90
Diffstat (limited to 'core/src/main')
-rw-r--r-- | core/src/main/kotlin/javadoc/docbase.kt | 6 |
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() } |