diff options
author | Dmitry Jemerov <yole@jetbrains.com> | 2015-02-27 17:17:02 +0100 |
---|---|---|
committer | Dmitry Jemerov <yole@jetbrains.com> | 2015-02-27 17:17:02 +0100 |
commit | 78a8fb9ff108386ce39cb8935ef3d9a4f92df426 (patch) | |
tree | 818ca99f6312ba9b9ee3b8331343c22903c6f50b /src/Java | |
parent | 6af51fdd6ee41cee6b5a7fd5714b80ad4b077a42 (diff) | |
download | dokka-78a8fb9ff108386ce39cb8935ef3d9a4f92df426.tar.gz dokka-78a8fb9ff108386ce39cb8935ef3d9a4f92df426.tar.bz2 dokka-78a8fb9ff108386ce39cb8935ef3d9a4f92df426.zip |
don't generate 'open' modifier for constructors
Diffstat (limited to 'src/Java')
-rw-r--r-- | src/Java/JavaDocumentationBuilder.kt | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/Java/JavaDocumentationBuilder.kt b/src/Java/JavaDocumentationBuilder.kt index bb2fb639..c37e720b 100644 --- a/src/Java/JavaDocumentationBuilder.kt +++ b/src/Java/JavaDocumentationBuilder.kt @@ -339,7 +339,8 @@ public class JavaDocumentationBuilder(private val options: DocumentationOptions, appendTextNode(it, Kind.Modifier) } } - if ((element is PsiClass || element is PsiMethod) && !element.hasModifierProperty(PsiModifier.FINAL)) { + if ((element is PsiClass || (element is PsiMethod && !element.isConstructor())) && + !element.hasModifierProperty(PsiModifier.FINAL)) { appendTextNode("open", Kind.Modifier) } } |