diff options
author | Dmitry Jemerov <yole@jetbrains.com> | 2015-02-10 19:09:19 +0100 |
---|---|---|
committer | Dmitry Jemerov <yole@jetbrains.com> | 2015-02-10 19:09:19 +0100 |
commit | a187baa606f1dd6ce63bc38247f4b5331d78f42b (patch) | |
tree | 4d4290b107ae85ce735756bc04c21c812870d86d /src | |
parent | 550efc262fbd678da3d08972280b41e666c68065 (diff) | |
download | dokka-a187baa606f1dd6ce63bc38247f4b5331d78f42b.tar.gz dokka-a187baa606f1dd6ce63bc38247f4b5331d78f42b.tar.bz2 dokka-a187baa606f1dd6ce63bc38247f4b5331d78f42b.zip |
consider ContentNodeLink nodes to be equal if they point to nodes with the same name (so that links to parameters with the same name in different overloads would still allow grouping)
Diffstat (limited to 'src')
-rw-r--r-- | src/Model/Content.kt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Model/Content.kt b/src/Model/Content.kt index f264d623..7a0f6c2e 100644 --- a/src/Model/Content.kt +++ b/src/Model/Content.kt @@ -40,10 +40,10 @@ public class ContentBlockCode() : ContentBlock() public class ContentNodeLink(val node : DocumentationNode) : ContentBlock() { override fun equals(other: Any?): Boolean = - super.equals(other) && other is ContentNodeLink && node == other.node + super.equals(other) && other is ContentNodeLink && node.name == other.node.name override fun hashCode(): Int = - children.hashCode() * 31 + node.hashCode() + children.hashCode() * 31 + node.name.hashCode() } public class ContentExternalLink(val href : String) : ContentBlock() { |