Skip to content

Commit

Permalink
sorting
Browse files Browse the repository at this point in the history
  • Loading branch information
rishav-karanjit committed Jan 8, 2025
1 parent 7c7f8f2 commit c3ebb53
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ public void generateUnion(GoWriter writer) {
.values()
.stream()
.filter(memberShape -> !isEventStreamErrorMember(memberShape))
.sorted()
.collect(Collectors.toCollection(TreeSet::new));

memberShapes
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1090,7 +1090,7 @@ func OpaqueError_Input_ToDafny(nativeInput $L.OpaqueError)($L.Error) {
ModelUtils.isInServiceNamespace(shape.getId(), serviceShape)
)
.sorted()
.collect(Collectors.toSet());
.collect(Collectors.toCollection(LinkedHashSet::new));

context
.writerDelegator()
Expand Down Expand Up @@ -1473,7 +1473,7 @@ func OpaqueError_Output_FromDafny(dafnyOutput $L.Error)($L.OpaqueError) {
ModelUtils.isInServiceNamespace(shape.getId(), serviceShape)
)
.sorted()
.collect(Collectors.toSet());
.collect(Collectors.toCollection(LinkedHashSet::new));

context
.writerDelegator()
Expand Down

0 comments on commit c3ebb53

Please sign in to comment.