From 10e39a4435bcea56ed9c9edcfdb0b733c77323a6 Mon Sep 17 00:00:00 2001 From: xynngh Date: Thu, 14 May 2020 19:04:50 +0400 Subject: [PATCH] Fix some warnings --- .../sia/model/database/CommunityDatabase.java | 31 ++++++++++--------- .../database/CommunityDatabaseDataSlice.java | 4 +-- 2 files changed, 19 insertions(+), 16 deletions(-) diff --git a/app/src/main/java/dummydomain/yetanothercallblocker/sia/model/database/CommunityDatabase.java b/app/src/main/java/dummydomain/yetanothercallblocker/sia/model/database/CommunityDatabase.java index cf6c51f..575eaa9 100644 --- a/app/src/main/java/dummydomain/yetanothercallblocker/sia/model/database/CommunityDatabase.java +++ b/app/src/main/java/dummydomain/yetanothercallblocker/sia/model/database/CommunityDatabase.java @@ -156,7 +156,7 @@ public class CommunityDatabase extends AbstractDatabase 1) { - int sliceId = Integer.valueOf(numberString.substring(0, 2)); + int sliceId = Integer.parseInt(numberString.substring(0, 2)); shortSliceIdToIndexMap.get(sliceId).add(i); } } for (int i = 0; i < numbersToDelete.length; i++) { String numberString = String.valueOf(numbersToDelete[i]); if (numberString.length() > 1) { - int sliceId = Integer.valueOf(numberString.substring(0, 2)); + int sliceId = Integer.parseInt(numberString.substring(0, 2)); shortSliceIdToIndexToDeleteMap.get(sliceId).add(i); } }