Skip to content

Commit

Permalink
fix: makes code more readable and gets rid of extra code uneeded fr o…
Browse files Browse the repository at this point in the history
…ur specific application. lesson_14 - Joseph Caballero
  • Loading branch information
Josephcabs committed Oct 26, 2024
1 parent 38daaf5 commit 373fadc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,15 @@ public Order(String orderId, Product product, int quantity) {
this.quantity = quantity;
}

public String getOrderId() throws OrderNotFoundException {
public String getOrderId(){
return orderId;
}

public Product getProduct() throws OrderNotFoundException {
public Product getProduct() {
return product;
}

public int getQuantity() throws OrderNotFoundException {
public int getQuantity() {
return quantity;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ public Product(String productId, String name) {
this.name = name;
}

public String getProductId() throws ProductNotFoundException {
public String getProductId() {
return productId;
}

public String getName() throws ProductNotFoundException {
public String getName() {
return name;
}
}

0 comments on commit 373fadc

Please sign in to comment.