summaryrefslogtreecommitdiff
path: root/java/com/android/dialer/databasepopulator
diff options
context:
space:
mode:
authorlinyuh <linyuh@google.com>2018-06-28 20:13:52 -0700
committerCopybara-Service <copybara-piper@google.com>2018-06-28 20:14:43 -0700
commit60c1e5732085d36bdf5b49055add832222c75839 (patch)
tree4b18ade57cdb2100cbd4acec0a1d42163b3c21ef /java/com/android/dialer/databasepopulator
parente479c7d417573ac142b336c904ce0643e010f7dd (diff)
Remove redundant @TargetApi, @RequiresApi and @SuppressWarnings
Test: Existing tests PiperOrigin-RevId: 202589482 Change-Id: I6982e4069d30032bf46caf3c9984dfc0e7196f6f
Diffstat (limited to 'java/com/android/dialer/databasepopulator')
-rw-r--r--java/com/android/dialer/databasepopulator/BlockedBumberPopulator.java4
1 files changed, 0 insertions, 4 deletions
diff --git a/java/com/android/dialer/databasepopulator/BlockedBumberPopulator.java b/java/com/android/dialer/databasepopulator/BlockedBumberPopulator.java
index 378d487e2..0819d52f6 100644
--- a/java/com/android/dialer/databasepopulator/BlockedBumberPopulator.java
+++ b/java/com/android/dialer/databasepopulator/BlockedBumberPopulator.java
@@ -16,12 +16,10 @@
package com.android.dialer.databasepopulator;
-import android.annotation.TargetApi;
import android.content.ContentProviderOperation;
import android.content.ContentValues;
import android.content.Context;
import android.content.OperationApplicationException;
-import android.os.Build.VERSION_CODES;
import android.os.RemoteException;
import android.provider.BlockedNumberContract;
import android.provider.BlockedNumberContract.BlockedNumbers;
@@ -38,7 +36,6 @@ public class BlockedBumberPopulator {
Arrays.asList(
createContentValuesWithNumber("123456789"), createContentValuesWithNumber("987654321"));
- @TargetApi(VERSION_CODES.N)
public static void populateBlockedNumber(@NonNull Context context) {
ArrayList<ContentProviderOperation> operations = new ArrayList<>();
for (ContentValues value : values) {
@@ -55,7 +52,6 @@ public class BlockedBumberPopulator {
}
}
- @TargetApi(VERSION_CODES.N)
public static void deleteBlockedNumbers(@NonNull Context context) {
// clean BlockedNumbers db
context.getContentResolver().delete(BlockedNumbers.CONTENT_URI, null, null);