GUAC-1170: Use checked versions of empty list/set/map.
This commit is contained in:
1 parent
b74c05b9f7
commit
51e9ff77e5
12 files changed
+15
-15
No files matched your search
+1
-1
@@ -122,7 +122,7 @@ public class APIConnectionWrapper implements Connection {
|
||||
|
||||
@Override
|
||||
public List<? extends ConnectionRecord> getHistory() throws GuacamoleException {
|
||||
return Collections.EMPTY_LIST;
|
||||
return Collections.<ConnectionRecord>emptyList();
|
||||
}
|
||||
|
||||
}
|
||||
+1
-1
@@ -108,7 +108,7 @@ public class LanguageRESTService {
|
||||
|
||||
// If no translation files found, return an empty map
|
||||
if (resourcePaths == null)
|
||||
return Collections.EMPTY_MAP;
|
||||
return Collections.<String, String>emptyMap();
|
||||
|
||||
Map<String, String> languageMap = new HashMap<String, String>();
|
||||
|
||||
|
||||
Reference in new issue
Block a user