Skip to content

Commit

Permalink
Add missing @OverRide annotations
Browse files Browse the repository at this point in the history
Signed-off-by: Mark Thomas <markt@apache.org>
  • Loading branch information
markt-asf committed May 12, 2020
1 parent 843595d commit 6f35dfc
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/test/java/org/glassfish/el/test/Customer.java
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ public Customer(int customerID, String name, String address, String city,
this.orders = new ArrayList<>();
}

@Override
public String toString() {
return "Customer: " + customerID + ", " + name + ", " + city + ", " +
country;
Expand Down
1 change: 1 addition & 0 deletions src/test/java/org/glassfish/el/test/Date.java
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ public Date(int year, int month, int date) {
public int getMonth() { return month; }
public int getDate() { return date; }

@Override
public String toString() {
return "" + month + "/" + date + "/" + year;
}
Expand Down
1 change: 1 addition & 0 deletions src/test/java/org/glassfish/el/test/Order.java
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ public Order(int orderID, int customerID, Date orderDate, double total) {
this.total = total;
}

@Override
public String toString() {
return "Order: " + orderID + ", " + customerID +
", " + orderDate.toString() + ", " + total;
Expand Down
1 change: 1 addition & 0 deletions src/test/java/org/glassfish/el/test/Product.java
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ public class Product {
this.unitsInStock = unitsInStock;
}

@Override
public String toString() {
return "Product: " + productID + ", " + name + ", " +
category + ", " + unitPrice + ", " + unitsInStock;
Expand Down

0 comments on commit 6f35dfc

Please sign in to comment.