From: Roland Haeder Date: Mon, 24 Aug 2015 06:48:22 +0000 (+0200) Subject: Added @Override + call of default constructor X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=0db7ead74e6db108841913a41729c8f67a6b6a01;p=pizzaservice-war.git Added @Override + call of default constructor Signed-off-by:Roland Häder --- 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));