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;
}
@Override
- @SuppressWarnings ("ReturnOfCollectionOrArrayField")
public List<Country> allCountries () {
// Return "cached" version
- return this.countryList;
+ return Collections.unmodifiableList(this.countryList);
}
/**