Skip to content

Commit d64087c

Browse files
authored
[generator] Use the correct javadoc element (#934)
Fixes: #933 Fixes a bug when attempting to find the `<javadoc/>` element that is associated with a specific member name and jni-signature. When a type contained multiple members with the same name, we would always return the first `<javadoc/>` that matched the member name, rather than the one that matched both the name and signature.
1 parent aac3e9a commit d64087c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/generator/Java.Interop.Tools.Generator.Transformation/JavadocFixups.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ static XElement GetMemberJavadoc (XElement typeJavadoc, string elementName, stri
100100
return typeJavadoc
101101
.Elements (elementName)
102102
.Where (e => jniSignature == (string) e.Attribute ("jni-signature") &&
103-
name == null ? true : name == (string) e.Attribute ("name"))
103+
(name == null ? true : name == (string) e.Attribute ("name")))
104104
.Elements ("javadoc")
105105
.FirstOrDefault ();
106106
}

0 commit comments

Comments
 (0)