BAEL-2275: Return immutable list when getting order items
This commit is contained in:
parent
1f94507c52
commit
4979fd21dc
|
@ -76,6 +76,6 @@ public class Order {
|
|||
}
|
||||
|
||||
public List<OrderItem> getOrderItems() {
|
||||
return orderItems;
|
||||
return Collections.unmodifiableList(orderItems);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue