aboutsummaryrefslogtreecommitdiff
path: root/src/Java
diff options
context:
space:
mode:
authorDmitry Jemerov <yole@jetbrains.com>2015-02-16 14:22:33 +0100
committerDmitry Jemerov <yole@jetbrains.com>2015-02-16 14:22:33 +0100
commit5c709d949d5497e562048b2731ab1c25cc06f386 (patch)
treee2e55e00f5a1ac58e6509fdaa1f64e0d006fe26c /src/Java
parent3e3a4af652358214815ea28e094d6f4d2554bde8 (diff)
downloaddokka-5c709d949d5497e562048b2731ab1c25cc06f386.tar.gz
dokka-5c709d949d5497e562048b2731ab1c25cc06f386.tar.bz2
dokka-5c709d949d5497e562048b2731ab1c25cc06f386.zip
represent non-final classes and methods as open
Diffstat (limited to 'src/Java')
-rw-r--r--src/Java/JavaDocumentationBuilder.kt3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/Java/JavaDocumentationBuilder.kt b/src/Java/JavaDocumentationBuilder.kt
index 8408d25a..5f0798dd 100644
--- a/src/Java/JavaDocumentationBuilder.kt
+++ b/src/Java/JavaDocumentationBuilder.kt
@@ -154,6 +154,9 @@ public class JavaDocumentationBuilder(private val options: DocumentationOptions)
append(modifierNode, DocumentationReference.Kind.Detail)
}
}
+ if ((element is PsiClass || element is PsiMethod) && !element.hasModifierProperty(PsiModifier.FINAL)) {
+ append(DocumentationNode("open", Content.Empty, Kind.Modifier), DocumentationReference.Kind.Detail)
+ }
}
fun DocumentationNode.appendType(psiType: PsiType?, kind: DocumentationNode.Kind = DocumentationNode.Kind.Type) {