Skip to content

Commit cbb38f4

Browse files
committed
Fix javadoc
1 parent 48e1b37 commit cbb38f4

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

codegen/src/main/java/software/amazon/awssdk/codegen/AddShapes.java

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -352,11 +352,14 @@ private boolean isGreedy(Shape parentShape, Map<String, Shape> allC2jShapes, Par
352352
}
353353

354354
/**
355-
* Given an input shape, finds the Request URI for the operation that input is referenced from.
356-
* Per the Smithy spec, httpLabel on non-input shapes has no meaning and is ignored,
357-
* so this returns Optional.empty() if the shape is not a direct operation input.
358-
* If the shape IS a direct operation input but the operation is missing a requestUri,
359-
* a validation error is thrown.
355+
* Given a shape, finds the Request URI for the operation that references it as input.
356+
* Returns empty if the shape is not a direct operation input.
357+
* Throws if the shape is a direct operation input but the operation is missing a requestUri.
358+
*
359+
* @param parentShape Shape to find operation's request URI for.
360+
* @param allC2jShapes All shapes in the service model.
361+
* @return Request URI for operation, or empty if the shape is not a direct operation input.
362+
* @throws ModelInvalidException If the shape is a direct operation input but requestUri is missing.
360363
*/
361364
private Optional<String> findRequestUri(Shape parentShape, Map<String, Shape> allC2jShapes) {
362365
Optional<Operation> operation = builder.getService().getOperations().values().stream()

0 commit comments

Comments
 (0)