A defensive copy is an independently created duplicate of mutable data that prevents external mutation from changing the original representation. In a validated cart, copying the active and saved collections makes the immutable data safe after construction. section 9.3.1
Copy collections at the boundary
A ValidCart validates each item, then assigns active = List.copyOf(active) and saved = List.copyOf(saved). The cart therefore cannot be corrupted through later mutation of the input lists.

