Skip to content

Commit 7a1dfd2

Browse files
7903823: Use correct key when building display of method return types
Reviewed-by: iris
1 parent 5783eed commit 7a1dfd2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/share/classes/jdk/codetools/apidiff/report/html/TypePageReporter.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -577,7 +577,7 @@ Content build() {
577577
contents.add(Text.of(pageKey.name.toString()));
578578

579579
case METHOD -> {
580-
contents.add(buildType(ePos,
580+
contents.add(buildType(ePos.returnType(),
581581
((ExecutableElement) e)::getReturnType));
582582
contents.add(Text.SPACE);
583583
contents.add(Text.of(e.getSimpleName()));

0 commit comments

Comments
 (0)