]> git.mxchange.org Git - jshop-core.git/commitdiff
Used T, not the interface
authorRoland Haeder <roland@mxchange.org>
Thu, 10 Sep 2015 07:20:17 +0000 (09:20 +0200)
committerRoland Haeder <roland@mxchange.org>
Thu, 10 Sep 2015 07:20:17 +0000 (09:20 +0200)
Signed-off-by:Roland Häder <roland@mxchange.org>

src/org/mxchange/jshopcore/model/basket/BaseBasket.java
src/org/mxchange/jshopcore/model/basket/Basket.java

index 293e521b0307fe5138ed00e055265c0ceb733414..fcf10eaca88168bf5843652a2fa803d8149f3ee1 100644 (file)
@@ -73,7 +73,7 @@ public abstract class BaseBasket<T extends AddableBasketItem> implements Basket<
        }
 
        @Override
-       public AddableBasketItem getLast () {
+       public T getLast () {
                // Deligate to frontend
                // TODO: return ((BasketFrontend) this.getFrontend()).getLast();
                throw new UnsupportedOperationException("Not yet implmeneted.");
index e6f9b65c72c99e9fb85c20df31224e700f83d0fc..72d9e07fb5d1f519a8c7d330abb99856a00b8d06 100644 (file)
@@ -66,7 +66,7 @@ public interface Basket<T extends AddableBasketItem> extends Serializable {
         *
         * @return Last added item in basket
         */
-       public AddableBasketItem getLast ();
+       public T getLast ();
 
        /**
         * Getter for last num rows