Skip to content

Commit

Permalink
use unmodifiableList
Browse files Browse the repository at this point in the history
  • Loading branch information
adoroszlai committed May 21, 2024
1 parent 52e26a3 commit 41696d3
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -599,7 +599,7 @@ public Builder setNodes(List<DatanodeDetails> nodes) {

public Builder setNodeOrder(List<Integer> orders) {
// for build from ProtoBuf
this.nodeOrder = orders == null ? ImmutableList.of() : ImmutableList.copyOf(orders);
this.nodeOrder = Collections.unmodifiableList(orders);
return this;
}

Expand Down

0 comments on commit 41696d3

Please sign in to comment.