remove warning, adding generic brackets

This commit is contained in:
AndyScherzinger 2017-02-24 12:07:15 +01:00
parent bdb3a566a5
commit 5e5e9b609f
No known key found for this signature in database
GPG key ID: 6CADC7E3523C308B

View file

@ -280,7 +280,7 @@ public class MainApp extends MultiDexApplication {
Map<Pair<String, String>, Long> syncedFolders = new HashMap<>();
ArrayList<Long> ids = new ArrayList<>();
for (SyncedFolder syncedFolder : syncedFolderList) {
Pair<String, String> checkPair = new Pair(syncedFolder.getAccount(), syncedFolder.getLocalPath());
Pair<String, String> checkPair = new Pair<>(syncedFolder.getAccount(), syncedFolder.getLocalPath());
if (syncedFolders.containsKey(checkPair)) {
if (syncedFolder.getId() > syncedFolders.get(checkPair)) {
syncedFolders.put(checkPair, syncedFolder.getId());