X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2Fjava%2Forg%2Fmxchange%2Fpizzaapplication%2Fbeans%2Fcountry%2FPizzaCountryWebApplicationBean.java;h=623ced5195255b5d4e381f1c5e3eb69e856b0897;hb=2e469aa632779932cdd6317a61b3da8f219560be;hp=78be1b4d7ea0af52fde791573f5fd0ed789d6c50;hpb=6e6ad43ceab9578b7178934d97258d6b1c025847;p=pizzaservice-war.git diff --git a/src/java/org/mxchange/pizzaapplication/beans/country/PizzaCountryWebApplicationBean.java b/src/java/org/mxchange/pizzaapplication/beans/country/PizzaCountryWebApplicationBean.java index 78be1b4d..623ced51 100644 --- a/src/java/org/mxchange/pizzaapplication/beans/country/PizzaCountryWebApplicationBean.java +++ b/src/java/org/mxchange/pizzaapplication/beans/country/PizzaCountryWebApplicationBean.java @@ -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 allCountries () { // Return "cached" version - return this.countryList; + return Collections.unmodifiableList(this.countryList); } /**