]> git.mxchange.org Git - pizzaservice-war.git/blobdiff - src/java/org/mxchange/pizzaapplication/beans/country/PizzaCountryWebApplicationBean.java
Continued a bit:
[pizzaservice-war.git] / src / java / org / mxchange / pizzaapplication / beans / country / PizzaCountryWebApplicationBean.java
index 78be1b4d7ea0af52fde791573f5fd0ed789d6c50..623ced5195255b5d4e381f1c5e3eb69e856b0897 100644 (file)
@@ -17,6 +17,7 @@
 package org.mxchange.pizzaapplication.beans.country;
 
 import java.text.MessageFormat;
+import java.util.Collections;
 import java.util.List;
 import javax.annotation.PostConstruct;
 import javax.enterprise.context.ApplicationScoped;
@@ -93,10 +94,9 @@ public class PizzaCountryWebApplicationBean implements PizzaCountryWebApplicatio
        }
 
        @Override
-       @SuppressWarnings ("ReturnOfCollectionOrArrayField")
        public List<Country> allCountries () {
                // Return "cached" version
-               return this.countryList;
+               return Collections.unmodifiableList(this.countryList);
        }
 
        /**