Skip to content

Commit b70c5fd

Browse files
Compability changes to avoid compilation errors.
1 parent b78c7d0 commit b70c5fd

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

terminalCli/src/main/java/commands/AddProduct.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ public AddProduct(Product prod)
2222
public void execute(Screen context)
2323
{
2424
try {
25-
context.ordSer.addProductToOrder(context.activeCafeteria, context.activeOrder, prod, 1);
25+
context.ordSer.addProductToOrder(context.activeCoffee, context.activeOrder, prod, 1);
2626
} catch (InsufficientStockException ex)
2727
{
2828
System.err.println(ex.toString());

terminalCli/src/main/java/commands/RemoveProduct.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ public RemoveProduct(Product prod)
2323
public void execute(Screen context)
2424
{
2525
try {
26-
context.ordSer.removeProductFromOrder(context.activeCafeteria, context.activeOrder, prod, 1);
26+
context.ordSer.removeProductFromOrder(context.activeCoffee, context.activeOrder, prod, 1);
2727
} catch (InsufficientStockException ex)
2828
{
2929
System.err.println(ex.toString());

terminalCli/src/main/java/commands/ShowProductTypes.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ public ShowProductTypes(UIElement menu, String type)
2323

2424
public void execute(Screen context)
2525
{
26-
List<String> types = context.activeCafeteria.getTypes();
26+
List<String> types = context.activeCoffee.getTypes();
2727

2828
for(String type : types)
2929
{

terminalCli/src/main/java/ui/UIMenu.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ public void click()
4343
do
4444
{
4545
// If this menu has an associated action, run it before writing to screen
46-
if (action != null) action.execute();
46+
//if (action != null) action.execute();
4747
printMenu();
4848

4949
option = keyboard.nextLine();

0 commit comments

Comments
 (0)