Skip to content

Commit 4957d67

Browse files
committed
chore(codegen): replace getErrors() with getErrorsSet()
1 parent fd877b2 commit 4957d67

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/AwsProtocolUtils.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,7 @@ static Map<String, TreeSet<String>> getErrorAliases(GenerationContext context,
293293
boolean awsQueryCompatible = service.hasTrait(AwsQueryCompatibleTrait.class);
294294
if (awsQueryCompatible) {
295295
for (OperationShape operation : operations) {
296-
List<ShapeId> errors = operation.getErrors();
296+
Set<ShapeId> errors = operation.getErrorsSet();
297297
for (ShapeId error : errors) {
298298
Shape errorShape = context.getModel().expectShape(error);
299299
if (errorShape.hasTrait(AwsQueryErrorTrait.class)) {

codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/AwsQuery.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ public void generateProtocolTests(GenerationContext context) {
215215
public Map<String, ShapeId> getOperationErrors(GenerationContext context, OperationShape operation) {
216216
Map<String, ShapeId> errors = new TreeMap<>();
217217

218-
operation.getErrors().forEach(shapeId -> {
218+
operation.getErrorsSet().forEach(shapeId -> {
219219
Shape errorShape = context.getModel().expectShape(shapeId);
220220
String errorName = shapeId.getName(context.getService());
221221

0 commit comments

Comments
 (0)