Merge pull request #532 from leogtzr/master

Adding initialization-on-demand idiom and noninstantiable class instead of interface constant idiom
This commit is contained in:
Ilkka Seppälä authored and GitHub committed 2017-01-23 08:21:07 +02:00
commit 9ec0935a1c
13 files changed
+32 -21

No files matched your search

@@ -167,7 +167,7 @@ public class LruCache {
* Returns cache data in list form.
*/
public List<UserAccount> getCacheDataInListForm() {
ArrayList<UserAccount> listOfCacheData = new ArrayList<>();
List<UserAccount> listOfCacheData = new ArrayList<>();
Node temp = head;
while (temp != null) {
listOfCacheData.add(temp.userAccount);