Skip to content

Commit

Permalink
3
Browse files Browse the repository at this point in the history
  • Loading branch information
PawelAbleneo committed Oct 19, 2023
1 parent 12b5e3d commit 6c1c65a
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ public LinkedList findOrdersForProduct(Product p, boolean debug) {
boolean found = false;
if (order.getProducts().size() > 0) {
for (int j = 0; j <= order.getProducts().size(); j++) {
Product p2 = (Product) order.getProducts().get(j);
found = (p2 == p);
Product p2 = order.getProducts().get(j);
found = (p2.equals(p));
}
if (found && order != null)
l.add(order);
Expand Down

0 comments on commit 6c1c65a

Please sign in to comment.