From bde112fb412880941327ac676e2f4ec773e09f44 Mon Sep 17 00:00:00 2001 From: Roland Haeder Date: Mon, 24 Aug 2015 15:17:43 +0200 Subject: [PATCH] =?utf8?q?Use=20more=20generic,=20because=20it=20is=20cool?= =?utf8?q?=20to=20do=20so!=20;-)=20Signed-off-by:Roland=20H=C3=A4der=20?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- .../pizzaapplication/basket/BaseBasket.java | 13 +++++++------ .../pizzaapplication/basket/item/ItemBasket.java | 7 ++++++- 2 files changed, 13 insertions(+), 7 deletions(-) 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 -- 2.39.5