From: Roland Haeder Date: Mon, 24 Aug 2015 13:17:43 +0000 (+0200) Subject: Use more generic, because it is cool to do so! ;-) X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=bde112fb412880941327ac676e2f4ec773e09f44;p=pizzaservice-war.git Use more generic, because it is cool to do so! ;-) Signed-off-by:Roland Häder --- diff --git a/src/java/org/mxchange/pizzaapplication/basket/BaseBasket.java b/src/java/org/mxchange/pizzaapplication/basket/BaseBasket.java index 953cfa7d..9e495f74 100644 --- a/src/java/org/mxchange/pizzaapplication/basket/BaseBasket.java +++ b/src/java/org/mxchange/pizzaapplication/basket/BaseBasket.java @@ -32,8 +32,9 @@ import org.mxchange.pizzaapplication.product.Product; * A general basket class * * @author Roland Haeder + * @param Any instance that implements AddableBasketItem */ -public class BaseBasket extends BaseFrameworkSystem implements Basket, Serializable { +public class BaseBasket extends BaseFrameworkSystem implements Basket, Serializable { /** * Serial number */ @@ -42,7 +43,7 @@ public class BaseBasket extends BaseFrameworkSystem implements Basket items; + private final Map items; /** * Protected constructor with session instance @@ -68,7 +69,7 @@ public class BaseBasket extends BaseFrameworkSystem implements Basket Any instance that implements AddableBasketItem */ -public class ItemBasket extends BaseBasket implements Basket { +public class ItemBasket extends BaseBasket implements Basket { + /** + * Serial number + */ + private static final long serialVersionUID = 4384123923163957L; /** * Creates a singleton instance from given session's id