Skip to content

Commit

Permalink
respond to PR comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Quinn-With-Two-Ns committed Dec 4, 2024
1 parent 1953619 commit 2660bba
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public Serializer getSerializer() {
return serializer;
}

public List<OperationMiddleware> getMiddlewares() {
public List<OperationMiddleware> getOperationMiddlewares() {
return middlewares;
}

Expand Down Expand Up @@ -206,7 +206,7 @@ public Builder addOperationMiddleware(OperationMiddleware middleware) {
}

/** Get a list of all {@link OperationMiddleware} registered on this handler. */
public List<OperationMiddleware> getMiddlewares() {
public List<OperationMiddleware> getOperationMiddlewares() {
return middlewares;
}

Expand All @@ -229,7 +229,7 @@ public ServiceHandler build() {
return new ServiceHandler(
Collections.unmodifiableMap(instancesByName),
serializer,
Collections.unmodifiableList(middlewares));
Collections.unmodifiableList(new ArrayList<>(middlewares)));
}
}
}

0 comments on commit 2660bba

Please sign in to comment.