]> git.mxchange.org Git - pizzaservice-war.git/commitdiff
Better return same object as other controllers may want to modify (add/change/delete...
authorRoland Haeder <roland@mxchange.org>
Wed, 13 Apr 2016 17:04:58 +0000 (19:04 +0200)
committerRoland Haeder <roland@mxchange.org>
Wed, 13 Apr 2016 17:04:58 +0000 (19:04 +0200)
src/java/org/mxchange/pizzaapplication/beans/shop/PizzaShopWebApplicationBean.java

index 1fbe8458c1ac8971bda1df83fd9a4a05edf1488a..a502e025fb9edfbe6e1c83c37607492faf5199d7 100644 (file)
@@ -87,10 +87,10 @@ public class PizzaShopWebApplicationBean implements PizzaShopWebApplicationContr
        }
 
        @Override
+       @SuppressWarnings ("ReturnOfCollectionOrArrayField")
        public List<Category> getAllCategories () throws FacesException {
                // Return it
-               // TODO Find something better here to prevent warning
-               return Collections.unmodifiableList(this.categories);
+               return this.categories;
        }
 
        @Override