BAEL-2275: Return immutable list when getting order items

This commit is contained in:
Lukasz Rys 2019-11-25 21:57:06 +01:00
parent 1f94507c52
commit 4979fd21dc
1 changed files with 1 additions and 1 deletions

View File

@ -76,6 +76,6 @@ public class Order {
}
public List<OrderItem> getOrderItems() {
return orderItems;
return Collections.unmodifiableList(orderItems);
}
}