Skip to content

Commit 3f5765d

Browse files
committed
Fix put handling on ResourceShape
1 parent f790557 commit 3f5765d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

smithy-model/src/main/java/software/amazon/smithy/model/shapes/ResourceShape.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -188,6 +188,7 @@ public boolean equals(Object other) {
188188
ResourceShape otherShape = (ResourceShape) other;
189189
return identifiers.equals(otherShape.identifiers)
190190
&& Objects.equals(create, otherShape.create)
191+
&& Objects.equals(put, otherShape.put)
191192
&& Objects.equals(read, otherShape.read)
192193
&& Objects.equals(update, otherShape.update)
193194
&& Objects.equals(delete, otherShape.delete)
@@ -306,6 +307,9 @@ public Builder removeFromAllOperationBindings(ToShapeId toShapeId) {
306307
if (Objects.equals(create, id)) {
307308
create = null;
308309
}
310+
if (Objects.equals(put, id)) {
311+
put = null;
312+
}
309313
if (Objects.equals(read, id)) {
310314
read = null;
311315
}

0 commit comments

Comments
 (0)