From 60c1e5732085d36bdf5b49055add832222c75839 Mon Sep 17 00:00:00 2001 From: linyuh Date: Thu, 28 Jun 2018 20:13:52 -0700 Subject: Remove redundant @TargetApi, @RequiresApi and @SuppressWarnings Test: Existing tests PiperOrigin-RevId: 202589482 Change-Id: I6982e4069d30032bf46caf3c9984dfc0e7196f6f --- java/com/android/dialer/databasepopulator/BlockedBumberPopulator.java | 4 ---- 1 file changed, 4 deletions(-) (limited to 'java/com/android/dialer/databasepopulator') 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 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); -- cgit v1.2.3