Skip to content

Commit

Permalink
Fix mistake
Browse files Browse the repository at this point in the history
  • Loading branch information
Emalios committed Aug 9, 2020
1 parent 9fc2a19 commit 63fd513
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions poo/value_objects/code/Order.java
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ public class Order {

//Not a value objet because have an id
private final UUID orderId;
private List<Product> products;
private Products products;
private Address addressToDeliver;

public Order(List<Product> products, Address addressToDeliver) {
public Order(Products products, Address addressToDeliver) {
this.orderId = UUID.randomUUID();
this.products = products;
this.addressToDeliver = addressToDeliver;
Expand Down

0 comments on commit 63fd513

Please sign in to comment.