diff options
-rw-r--r-- | src/Java/JavaDocumentationBuilder.kt | 1 | ||||
-rw-r--r-- | test/data/java/innerClass.java | 6 | ||||
-rw-r--r-- | test/src/model/JavaTest.kt | 7 |
3 files changed, 14 insertions, 0 deletions
diff --git a/src/Java/JavaDocumentationBuilder.kt b/src/Java/JavaDocumentationBuilder.kt index fdf5c665..0737e504 100644 --- a/src/Java/JavaDocumentationBuilder.kt +++ b/src/Java/JavaDocumentationBuilder.kt @@ -69,6 +69,7 @@ public class JavaDocumentationBuilder() { getImplementsListTypes().forEach { node.appendType(it, Kind.Supertype) } node.appendDetails(getTypeParameters()) { build() } node.appendMembers(getMethods()) { build() } + node.appendMembers(getInnerClasses()) { build() } return node } diff --git a/test/data/java/innerClass.java b/test/data/java/innerClass.java new file mode 100644 index 00000000..dd08e100 --- /dev/null +++ b/test/data/java/innerClass.java @@ -0,0 +1,6 @@ +package test; + +class Test { + public class D { + } +} diff --git a/test/src/model/JavaTest.kt b/test/src/model/JavaTest.kt index ab417036..fcfae21a 100644 --- a/test/src/model/JavaTest.kt +++ b/test/src/model/JavaTest.kt @@ -85,4 +85,11 @@ public class JavaTest { } } } + + Test fun innerClass() { + verifyPackageMember("test/data/java/innerClass.java") { cls -> + val innerClass = cls.members(DocumentationNode.Kind.Class).single() + assertEquals("D", innerClass.name) + } + } } |