Skip to content

Commit 7fba084

Browse files
authored
Fixed crosslinking of operations. (#3602)
When we used Java 8 to generate javadocs, it generated method IDs without method parameters: https://sdk.amazonaws.com/java/api/latest/software/amazon/awssdk/services/s3/S3Client.html#createBucket-- Since moving to Java 17 for javadoc generation, it now requires the method parameter type in the ID: https://sdk.amazonaws.com/java/api/latest/software/amazon/awssdk/services/s3/S3Client.html#createBucket(software.amazon.awssdk.services.s3.model.CreateBucketRequest) This change was tested manually on my desktop.
1 parent 9554c10 commit 7fba084

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

scripts/doc_crosslinks/crosslink_redirect.html

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,14 @@
5454
else
5555
{
5656
redirectServiceSuffixLink = serviceFolderPath + serviceName + "/" + clientObjectName + ".html" ;
57-
if(typeName != null)
58-
redirectServiceSuffixLink = redirectServiceSuffixLink + "#" + camelize(typeName) + "--";
57+
if(typeName != null) {
58+
methodName = camelize(typeName)
59+
requestObjectName = methodName.charAt(0).toUpperCase() + methodName.slice(1) + "Request"
60+
redirectServiceSuffixLink =
61+
redirectServiceSuffixLink +
62+
"#" + methodName +
63+
"(software.amazon.awssdk.services." + serviceName + ".model." + requestObjectName + ")";
64+
}
5965
if(checkResourceExists( baseUri.replace(/crosslink_redirect.*/gi, redirectServiceSuffixLink) ))
6066
redirectSuffixLink = redirectServiceSuffixLink;
6167
}

0 commit comments

Comments
 (0)