aboutsummaryrefslogtreecommitdiff
path: root/core/src/main/kotlin/Java/JavaPsiDocumentationBuilder.kt
diff options
context:
space:
mode:
Diffstat (limited to 'core/src/main/kotlin/Java/JavaPsiDocumentationBuilder.kt')
-rw-r--r--core/src/main/kotlin/Java/JavaPsiDocumentationBuilder.kt14
1 files changed, 1 insertions, 13 deletions
diff --git a/core/src/main/kotlin/Java/JavaPsiDocumentationBuilder.kt b/core/src/main/kotlin/Java/JavaPsiDocumentationBuilder.kt
index 8776da4c2..ed4d36687 100644
--- a/core/src/main/kotlin/Java/JavaPsiDocumentationBuilder.kt
+++ b/core/src/main/kotlin/Java/JavaPsiDocumentationBuilder.kt
@@ -209,20 +209,8 @@ class JavaPsiDocumentationBuilder : JavaDocumentationBuilder {
superTypes.filter { !ignoreSupertype(it) }.forEach { superType ->
node.appendType(superType, NodeKind.Supertype)
val superClass = superType.resolve()
- // parentNode is the actual DocumentationNode of this class's supertype
- // It is necessary to create documentation links back to the superclass from inherited methods
- val parentNode = refGraph.lookup(superType.typeSignature())
- if (superClass != null && parentNode != null) {
+ if (superClass != null) {
link(superClass, node, RefKind.Inheritor)
- // Explicitly add the methods of the superclass (which are not overridden) as nodes to this class
- val overriddenMethods = methods.toList().flatMap { it.findSuperMethods().toList() }
- val inheritedMethods = superClass.methods.filter { it !in overriddenMethods }.toTypedArray()
-
- node.appendChildren(inheritedMethods, RefKind.InheritedMember) {
- val child = build()
- child.addReferenceTo(parentNode, RefKind.Owner)
- return@appendChildren child
- }
}
}