]> git.mxchange.org Git - pizzaservice-war.git/commitdiff
Added @Override + call of default constructor
authorRoland Haeder <roland@mxchange.org>
Mon, 24 Aug 2015 06:48:22 +0000 (08:48 +0200)
committerRoland Haeder <roland@mxchange.org>
Mon, 24 Aug 2015 06:48:22 +0000 (08:48 +0200)
Signed-off-by:Roland Häder <roland@mxchange.org>

src/java/org/mxchange/pizzaapplication/item/BaseItem.java
src/java/org/mxchange/pizzaapplication/item/basket/BasketItem.java

index 8500a4557762de0975186eb23f2494f13a873e5a..33b6f1315f811407af37494a8eaf9403810b7657 100644 (file)
@@ -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;
        }
index f968c75bcddd7ac3bef64e82d26dbb166d40814a..40431736290b85c8ee863d754bdae07c6ef09dc2 100644 (file)
@@ -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));