Messaging: Replace explicit types

Change-Id: I2165b3dec73973a2a82d8b3c7c364b5f011e597d
This commit is contained in:
Michael W
2024-12-16 17:16:03 +01:00
parent 9538179c75
commit 0069df879a
124 changed files with 278 additions and 277 deletions

View File

@@ -234,7 +234,7 @@ public class ParticipantRefresh {
refreshSelfParticipantList();
}
final ArrayList<String> changedParticipants = new ArrayList<String>();
final ArrayList<String> changedParticipants = new ArrayList<>();
String selection = null;
String[] selectionArgs = null;
@@ -306,7 +306,7 @@ public class ParticipantRefresh {
private static Set<Integer> getExistingSubIds() {
final DatabaseWrapper db = DataModel.get().getDatabase();
final HashSet<Integer> existingSubIds = new HashSet<Integer>();
final HashSet<Integer> existingSubIds = new HashSet<>();
try (Cursor cursor = db.query(DatabaseHelper.PARTICIPANTS_TABLE,
ParticipantsQuery.PROJECTION,
@@ -346,7 +346,7 @@ public class ParticipantRefresh {
final List<SubscriptionInfo> subInfoRecords =
PhoneUtils.getDefault().getActiveSubscriptionInfoList();
final ArrayMap<Integer, SubscriptionInfo> activeSubscriptionIdToRecordMap =
new ArrayMap<Integer, SubscriptionInfo>();
new ArrayMap<>();
db.beginTransaction();
final Set<Integer> existingSubIds = getExistingSubIds();
@@ -603,7 +603,7 @@ public class ParticipantRefresh {
*/
private static List<String> getInactiveSelfParticipantIds() {
final DatabaseWrapper db = DataModel.get().getDatabase();
final List<String> inactiveSelf = new ArrayList<String>();
final List<String> inactiveSelf = new ArrayList<>();
final String selection = ParticipantColumns.SIM_SLOT_ID + "=? AND " +
SELF_PARTICIPANTS_CLAUSE;
@@ -628,7 +628,7 @@ public class ParticipantRefresh {
*/
private static List<String> getConversationsWithSelfParticipantIds(final List<String> selfIds) {
final DatabaseWrapper db = DataModel.get().getDatabase();
final List<String> conversationIds = new ArrayList<String>();
final List<String> conversationIds = new ArrayList<>();
Cursor cursor = null;
try {