]> git.mxchange.org Git - pizzaservice-war.git/commitdiff
Missed some @Override and added logger + ignored log messages for internationalization
authorRoland Haeder <roland@mxchange.org>
Tue, 18 Aug 2015 13:28:23 +0000 (15:28 +0200)
committerRoland Haeder <roland@mxchange.org>
Tue, 18 Aug 2015 13:28:23 +0000 (15:28 +0200)
Signed-off-by:Roland Häder <roland@mxchange.org>

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

index 53e71e84a4e7a2aafcce36e58ac81ad21688097b..058e9f2b2777372cb67f39c61bf62dd81d979eb2 100644 (file)
@@ -41,7 +41,7 @@ public class ItemBasket extends BaseBasket implements Basket<AddableBasketItem>
        @SuppressWarnings ("unchecked")
        public final static Basket<AddableBasketItem> getInstance (final HttpSession session) throws UnsupportedDatabaseBackendException, SQLException {
                // Get instance
-               Basket<AddableBasketItem> basket = (Basket<AddableBasketItem>) session.getAttribute("basket");
+               Basket<AddableBasketItem> basket = (Basket<AddableBasketItem>) session.getAttribute("basket"); //NOI18N
 
                // Is the basket already created?
                if (!(basket instanceof BaseBasket)) {
@@ -49,7 +49,7 @@ public class ItemBasket extends BaseBasket implements Basket<AddableBasketItem>
                        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<AddableBasketItem>
         * Default constructor to be able to throw exceptions from super constructor
         */
        private ItemBasket () throws UnsupportedDatabaseBackendException, SQLException {
+               // Trace message
+               this.getLogger().trace("CALLED!"); //NOI18N
        }
 }
index c72ba9ab86727dcfd4af25c98e726227ceb9d997..636fd3ca0487c4149c6e914842ce64d903400dd0 100644 (file)
@@ -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;
        }