return null instead of an empty set.
This commit is contained in:
1 parent
2b6fcc05e1
commit
f8effaee58
3 files changed
+38
-4
No files matched your search
@@ -611,12 +611,16 @@ public class RealmRepresentation {
|
||||
}
|
||||
|
||||
public Set<String> getSupportedLocales() {
|
||||
if(supportedLocales == null){
|
||||
supportedLocales = new HashSet<String>();
|
||||
}
|
||||
return supportedLocales;
|
||||
}
|
||||
|
||||
public void addSupportedLocales(String locale) {
|
||||
if(supportedLocales == null){
|
||||
supportedLocales = new HashSet<>();
|
||||
}
|
||||
supportedLocales.add(locale);
|
||||
}
|
||||
|
||||
public void setSupportedLocales(Set<String> supportedLocales) {
|
||||
this.supportedLocales = supportedLocales;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user