aboutsummaryrefslogtreecommitdiff
path: root/core/src/main/kotlin/javadoc/docbase.kt
diff options
context:
space:
mode:
authorSimon Ogorodnik <Simon.Ogorodnik@jetbrains.com>2019-02-25 19:45:09 +0300
committerSimon Ogorodnik <Simon.Ogorodnik@jetbrains.com>2019-02-25 19:45:59 +0300
commitff25593e8af941c624f3bee8bc031ae53c3700d5 (patch)
tree4029a632258f14f901da46f51c4f7ff8e4cd4e1e /core/src/main/kotlin/javadoc/docbase.kt
parenta2104d1e24a452cbfd2a76c204fc58475aa70057 (diff)
downloaddokka-ff25593e8af941c624f3bee8bc031ae53c3700d5.tar.gz
dokka-ff25593e8af941c624f3bee8bc031ae53c3700d5.tar.bz2
dokka-ff25593e8af941c624f3bee8bc031ae53c3700d5.zip
Fix problem on consumer side, improve test (#420)
Diffstat (limited to 'core/src/main/kotlin/javadoc/docbase.kt')
-rw-r--r--core/src/main/kotlin/javadoc/docbase.kt4
1 files changed, 1 insertions, 3 deletions
diff --git a/core/src/main/kotlin/javadoc/docbase.kt b/core/src/main/kotlin/javadoc/docbase.kt
index fcc017fd..fbf8c464 100644
--- a/core/src/main/kotlin/javadoc/docbase.kt
+++ b/core/src/main/kotlin/javadoc/docbase.kt
@@ -75,9 +75,7 @@ open class DocumentationNodeAdapter(override val module: ModuleNodeAdapter, node
node.deprecation?.let {
val content = it.content.asText()
- if (content != null) {
- result.add(TagImpl(this, "deprecated", content))
- }
+ result.add(TagImpl(this, "deprecated", content ?: ""))
}
return result.toTypedArray()