squid:S2293 - The diamond operator should be used
This commit is contained in:
@ -37,7 +37,7 @@ public class DbManager {
|
||||
*/
|
||||
public static void createVirtualDb() {
|
||||
useMongoDB = false;
|
||||
virtualDB = new HashMap<String, UserAccount>();
|
||||
virtualDB = new HashMap<>();
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -27,7 +27,7 @@ public class LruCache {
|
||||
}
|
||||
|
||||
int capacity;
|
||||
HashMap<String, Node> cache = new HashMap<String, Node>();
|
||||
HashMap<String, Node> cache = new HashMap<>();
|
||||
Node head = null;
|
||||
Node end = null;
|
||||
|
||||
@ -140,7 +140,7 @@ public class LruCache {
|
||||
* Returns cache data in list form.
|
||||
*/
|
||||
public ArrayList<UserAccount> getCacheDataInListForm() {
|
||||
ArrayList<UserAccount> listOfCacheData = new ArrayList<UserAccount>();
|
||||
ArrayList<UserAccount> listOfCacheData = new ArrayList<>();
|
||||
Node temp = head;
|
||||
while (temp != null) {
|
||||
listOfCacheData.add(temp.userAccount);
|
||||
|
Reference in New Issue
Block a user