GUAC-1170: Use checked versions of empty list/set/map.

This commit is contained in:
Michael Jumper
2015-04-26 13:56:57 -07:00
parent b74c05b9f7
commit 51e9ff77e5
12 changed files with 15 additions and 15 deletions

View File

@@ -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();
}
}

View File

@@ -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>();