Messaging: Replace explicit types
Change-Id: I2165b3dec73973a2a82d8b3c7c364b5f011e597d
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
/*
|
||||
* Copyright (C) 2015 The Android Open Source Project
|
||||
* Copyright (C) 2024 The LineageOS Project
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -118,7 +119,7 @@ public class PoolableImageCache extends MediaCache<ImageResource> {
|
||||
private final SparseArray<LinkedList<ImageResource>> mImageListSparseArray;
|
||||
|
||||
public ReusableImageResourcePool() {
|
||||
mImageListSparseArray = new SparseArray<LinkedList<ImageResource>>();
|
||||
mImageListSparseArray = new SparseArray<>();
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -232,7 +233,7 @@ public class PoolableImageCache extends MediaCache<ImageResource> {
|
||||
Assert.isTrue(poolKey != INVALID_POOL_KEY);
|
||||
LinkedList<ImageResource> imageList = mImageListSparseArray.get(poolKey);
|
||||
if (imageList == null) {
|
||||
imageList = new LinkedList<ImageResource>();
|
||||
imageList = new LinkedList<>();
|
||||
mImageListSparseArray.put(poolKey, imageList);
|
||||
}
|
||||
imageList.addLast(imageResource);
|
||||
|
||||
Reference in New Issue
Block a user