From df2e8307f85e7968cb59be19baf6876b0ba53b79 Mon Sep 17 00:00:00 2001 From: Roland Haeder Date: Tue, 18 Aug 2015 15:28:23 +0200 Subject: [PATCH] =?utf8?q?Missed=20some=20@Override=20and=20added=20logger?= =?utf8?q?=20+=20ignored=20log=20messages=20for=20internationalization=20S?= =?utf8?q?igned-off-by:Roland=20H=C3=A4der=20?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- .../mxchange/pizzaapplication/basket/item/ItemBasket.java | 6 ++++-- src/java/org/mxchange/pizzaapplication/item/BaseItem.java | 4 ++++ 2 files changed, 8 insertions(+), 2 deletions(-) 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; } -- 2.39.5