From: Roland Haeder Date: Tue, 18 Aug 2015 13:28:23 +0000 (+0200) Subject: Missed some @Override and added logger + ignored log messages for internationalization X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=df2e8307f85e7968cb59be19baf6876b0ba53b79;p=pizzaservice-war.git Missed some @Override and added logger + ignored log messages for internationalization Signed-off-by:Roland Häder --- diff --git a/src/java/org/mxchange/pizzaapplication/basket/item/ItemBasket.java b/src/java/org/mxchange/pizzaapplication/basket/item/ItemBasket.java index 53e71e84..058e9f2b 100644 --- a/src/java/org/mxchange/pizzaapplication/basket/item/ItemBasket.java +++ b/src/java/org/mxchange/pizzaapplication/basket/item/ItemBasket.java @@ -41,7 +41,7 @@ public class ItemBasket extends BaseBasket implements Basket @SuppressWarnings ("unchecked") public final static Basket getInstance (final HttpSession session) throws UnsupportedDatabaseBackendException, SQLException { // Get instance - Basket basket = (Basket) session.getAttribute("basket"); + Basket basket = (Basket) session.getAttribute("basket"); //NOI18N // Is the basket already created? if (!(basket instanceof BaseBasket)) { @@ -49,7 +49,7 @@ public class ItemBasket extends BaseBasket implements Basket basket = new ItemBasket(); // Add it in session - session.setAttribute("basket", basket); + session.setAttribute("basket", basket); //NOI18N } // Return it casted @@ -60,5 +60,7 @@ public class ItemBasket extends BaseBasket implements Basket * Default constructor to be able to throw exceptions from super constructor */ private ItemBasket () throws UnsupportedDatabaseBackendException, SQLException { + // Trace message + this.getLogger().trace("CALLED!"); //NOI18N } } diff --git a/src/java/org/mxchange/pizzaapplication/item/BaseItem.java b/src/java/org/mxchange/pizzaapplication/item/BaseItem.java index c72ba9ab..636fd3ca 100644 --- a/src/java/org/mxchange/pizzaapplication/item/BaseItem.java +++ b/src/java/org/mxchange/pizzaapplication/item/BaseItem.java @@ -36,6 +36,7 @@ public class BaseItem extends BaseFrameworkSystem implements AddableBasketItem { /** * @return the id */ + @Override public final Long getId () { return this.id; } @@ -43,6 +44,7 @@ public class BaseItem extends BaseFrameworkSystem implements AddableBasketItem { /** * @param id the id to set */ + @Override public final void setId (final Long id) { this.id = id; } @@ -50,6 +52,7 @@ public class BaseItem extends BaseFrameworkSystem implements AddableBasketItem { /** * @return the type */ + @Override public final String getType () { return this.type; } @@ -57,6 +60,7 @@ public class BaseItem extends BaseFrameworkSystem implements AddableBasketItem { /** * @param type the type to set */ + @Override public final void setType (final String type) { this.type = type; }