]> git.mxchange.org Git - pizzaservice-war.git/commitdiff
Added missing diamond type
authorRoland Haeder <roland@mxchange.org>
Wed, 26 Aug 2015 07:27:52 +0000 (09:27 +0200)
committerRoland Haeder <roland@mxchange.org>
Wed, 26 Aug 2015 07:27:52 +0000 (09:27 +0200)
Signed-off-by:Roland Häder <roland@mxchange.org>

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

index 0519566b8cf5c8f8dbcb17d7d922f487672d09cb..ae59e6571e527e6d20675bf84a72d28d1e5a8094 100644 (file)
@@ -38,7 +38,7 @@ public class ItemBasket<T extends AddableBasketItem> extends BaseBasket<T> imple
        /**
         * Creates a singleton instance from given session's id
         *
-        * @param session
+        * @param session An instance of a HttpSession class
         * @return A session-id based singleton instance of this basket
         * @throws org.mxchange.jcore.exceptions.UnsupportedDatabaseBackendException If an unsupported backend was configured
         * @throws java.sql.SQLException If an SQL error occurs
@@ -51,7 +51,7 @@ public class ItemBasket<T extends AddableBasketItem> extends BaseBasket<T> imple
                // Is the basket already created?
                if (!(basket instanceof BaseBasket)) {
                        // Not yet, so create it
-                       basket = new ItemBasket();
+                       basket = new ItemBasket<>();
 
                        // Add it in session
                        session.setAttribute("basket", basket); //NOI18N