1
0
mirror of https://github.com/moparisthebest/k-9 synced 2024-12-25 09:08:49 -05:00

Fixed some more warnings:

- Removed unused imports
- Removed unnecessary @SuppressWarnings("deprecation") annotations
- Added @SuppressWarnings("deprecation") to API 1-3 code that's now (API 5) deprecated
- Added missing @Override annotation
This commit is contained in:
cketti 2010-05-19 18:44:22 +00:00
parent 26bd72573e
commit b5a6a28f19
6 changed files with 2 additions and 4 deletions

View File

@ -38,7 +38,6 @@ public abstract class EmailAddressAdapter extends ResourceCursorAdapter
* Check the version of the SDK we are running on. Choose an
* implementation class designed for that version of the SDK.
*/
@SuppressWarnings("deprecation")
int sdkVersion = Integer.parseInt(Build.VERSION.SDK); // Cupcake style
if (sdkVersion < Build.VERSION_CODES.ECLAIR)
{

View File

@ -27,6 +27,7 @@ import com.fsck.k9.mail.Address;
import static android.provider.Contacts.ContactMethods.CONTENT_EMAIL_URI;
@SuppressWarnings("deprecation")
public class EmailAddressAdapterSdk3_4 extends EmailAddressAdapter
{
public static final int NAME_INDEX = 1;

View File

@ -17,7 +17,6 @@
package com.fsck.k9.activity;
import com.fsck.k9.R;
import com.fsck.k9.R.string;
import android.os.Bundle;
import android.app.Dialog;

View File

@ -9,7 +9,6 @@ import android.net.Uri;
import android.os.Bundle;
import android.os.Handler;
import android.os.PowerManager;
import android.os.PowerManager.WakeLock;
import android.util.Config;
import android.util.Log;
import android.util.TypedValue;

View File

@ -73,6 +73,7 @@ public class SpinnerHelper
this.entry = entry;
this.value = value;
}
@Override
public String toString()
{
return entry;

View File

@ -46,7 +46,6 @@ public class AutoSyncHelper
* Check the version of the SDK we are running on. Choose an
* implementation class designed for that version of the SDK.
*/
@SuppressWarnings("deprecation")
int sdkVersion = Integer.parseInt(Build.VERSION.SDK);
String className = null;