Fix Sonar Issue: Change visibilty of mutable field
Signed-off-by: SirWayne <dennis.melzer@bosch-si.com>
This commit is contained in:
@@ -210,7 +210,7 @@ public class HawkbitUI extends DefaultHawkbitUI implements DetachListener {
|
||||
navigator.addView(EMPTY_VIEW, new Navigator.EmptyView());
|
||||
// set locale is required for I18N class also, to get the locale from
|
||||
// cookie
|
||||
final String locale = getLocaleId(SPUIDefinitions.AVAILABLE_LOCALES);
|
||||
final String locale = getLocaleId(SPUIDefinitions.getAvailableLocales());
|
||||
setLocale(new Locale(locale));
|
||||
|
||||
UI.getCurrent().setErrorHandler(new SPUIErrorHandler());
|
||||
|
||||
@@ -26,7 +26,7 @@ public final class SPUIDefinitions {
|
||||
/**
|
||||
* Available locales.
|
||||
*/
|
||||
public static final Set<String> AVAILABLE_LOCALES = Stream.of("en", "de").collect(Collectors.toSet());
|
||||
private static final Set<String> AVAILABLE_LOCALES = Stream.of("en", "de").collect(Collectors.toSet());
|
||||
|
||||
/**
|
||||
* Default locale.
|
||||
@@ -953,4 +953,13 @@ public final class SPUIDefinitions {
|
||||
private SPUIDefinitions() {
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the locales
|
||||
*
|
||||
* @return the availableLocales
|
||||
*/
|
||||
public static Set<String> getAvailableLocales() {
|
||||
return AVAILABLE_LOCALES;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user