From 0db7ead74e6db108841913a41729c8f67a6b6a01 Mon Sep 17 00:00:00 2001 From: Roland Haeder Date: Mon, 24 Aug 2015 08:48:22 +0200 Subject: [PATCH] =?utf8?q?Added=20@Override=20+=20call=20of=20default=20co?= =?utf8?q?nstructor=20Signed-off-by:Roland=20H=C3=A4der=20?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- src/java/org/mxchange/pizzaapplication/item/BaseItem.java | 2 ++ .../org/mxchange/pizzaapplication/item/basket/BasketItem.java | 3 +++ 2 files changed, 5 insertions(+) diff --git a/src/java/org/mxchange/pizzaapplication/item/BaseItem.java b/src/java/org/mxchange/pizzaapplication/item/BaseItem.java index 8500a455..33b6f131 100644 --- a/src/java/org/mxchange/pizzaapplication/item/BaseItem.java +++ b/src/java/org/mxchange/pizzaapplication/item/BaseItem.java @@ -42,6 +42,7 @@ public class BaseItem extends BaseFrameworkSystem implements AddableBasketItem { * Item amount * @return the amount */ + @Override public final Long getAmount () { return this.amount; } @@ -50,6 +51,7 @@ public class BaseItem extends BaseFrameworkSystem implements AddableBasketItem { * Item amount * @param amount the amount to set */ + @Override public final void setAmount (final Long amount) { this.amount = amount; } diff --git a/src/java/org/mxchange/pizzaapplication/item/basket/BasketItem.java b/src/java/org/mxchange/pizzaapplication/item/basket/BasketItem.java index f968c75b..40431736 100644 --- a/src/java/org/mxchange/pizzaapplication/item/basket/BasketItem.java +++ b/src/java/org/mxchange/pizzaapplication/item/basket/BasketItem.java @@ -39,6 +39,9 @@ public class BasketItem extends BaseItem implements AddableBasketItem { * @param product Product instance */ public BasketItem (final Product product) { + // Call default constructor + this(); + // Trace message this.getLogger().debug(MessageFormat.format("product={0} - CALLED!", product)); -- 2.39.5