/**
* 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
// 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