mirror of
https://github.com/moparisthebest/k-9
synced 2024-11-23 18:02:15 -05:00
Fix some MS_SHOULD_BE_FINAL Findbugs warnings
This commit is contained in:
parent
65d2de0fcc
commit
6804ee04e3
@ -149,7 +149,7 @@ public class K9 extends Application {
|
|||||||
*
|
*
|
||||||
* Feature is enabled when DEBUG == true
|
* Feature is enabled when DEBUG == true
|
||||||
*/
|
*/
|
||||||
public static String ERROR_FOLDER_NAME = "K9mail-errors";
|
public static final String ERROR_FOLDER_NAME = "K9mail-errors";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* A reference to the {@link SharedPreferences} used for caching the last known database
|
* A reference to the {@link SharedPreferences} used for caching the last known database
|
||||||
@ -280,7 +280,7 @@ public class K9 extends Application {
|
|||||||
* on each new folder and can be incremented with "Load more messages..." by the
|
* on each new folder and can be incremented with "Load more messages..." by the
|
||||||
* VISIBLE_LIMIT_INCREMENT
|
* VISIBLE_LIMIT_INCREMENT
|
||||||
*/
|
*/
|
||||||
public static int DEFAULT_VISIBLE_LIMIT = 25;
|
public static final int DEFAULT_VISIBLE_LIMIT = 25;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The maximum size of an attachment we're willing to download (either View or Save)
|
* The maximum size of an attachment we're willing to download (either View or Save)
|
||||||
@ -295,7 +295,7 @@ public class K9 extends Application {
|
|||||||
* until the app is killed and restarted
|
* until the app is killed and restarted
|
||||||
*/
|
*/
|
||||||
|
|
||||||
public static int MAX_SEND_ATTEMPTS = 5;
|
public static final int MAX_SEND_ATTEMPTS = 5;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Max time (in millis) the wake lock will be held for when background sync is happening
|
* Max time (in millis) the wake lock will be held for when background sync is happening
|
||||||
|
@ -13,11 +13,11 @@ import com.fsck.k9.mail.internet.MimeUtility;
|
|||||||
|
|
||||||
public class CryptoHelper {
|
public class CryptoHelper {
|
||||||
|
|
||||||
public static Pattern PGP_MESSAGE =
|
public static final Pattern PGP_MESSAGE =
|
||||||
Pattern.compile(".*?(-----BEGIN PGP MESSAGE-----.*?-----END PGP MESSAGE-----).*",
|
Pattern.compile(".*?(-----BEGIN PGP MESSAGE-----.*?-----END PGP MESSAGE-----).*",
|
||||||
Pattern.DOTALL);
|
Pattern.DOTALL);
|
||||||
|
|
||||||
public static Pattern PGP_SIGNED_MESSAGE =
|
public static final Pattern PGP_SIGNED_MESSAGE =
|
||||||
Pattern.compile(
|
Pattern.compile(
|
||||||
".*?(-----BEGIN PGP SIGNED MESSAGE-----.*?-----BEGIN PGP SIGNATURE-----.*?-----END PGP SIGNATURE-----).*",
|
".*?(-----BEGIN PGP SIGNED MESSAGE-----.*?-----BEGIN PGP SIGNATURE-----.*?-----END PGP SIGNATURE-----).*",
|
||||||
Pattern.DOTALL);
|
Pattern.DOTALL);
|
||||||
|
@ -115,7 +115,7 @@ public class K9RemoteControl {
|
|||||||
public final static String K9_THEME_LIGHT = "LIGHT";
|
public final static String K9_THEME_LIGHT = "LIGHT";
|
||||||
public final static String K9_THEME_DARK = "DARK";
|
public final static String K9_THEME_DARK = "DARK";
|
||||||
|
|
||||||
protected static String LOG_TAG = "K9RemoteControl";
|
protected static final String LOG_TAG = "K9RemoteControl";
|
||||||
|
|
||||||
public static void set(Context context, Intent broadcastIntent) {
|
public static void set(Context context, Intent broadcastIntent) {
|
||||||
broadcastIntent.setAction(K9RemoteControl.K9_SET);
|
broadcastIntent.setAction(K9RemoteControl.K9_SET);
|
||||||
|
@ -15,12 +15,12 @@ import com.fsck.k9.K9;
|
|||||||
|
|
||||||
public class BootReceiver extends CoreReceiver {
|
public class BootReceiver extends CoreReceiver {
|
||||||
|
|
||||||
public static String FIRE_INTENT = "com.fsck.k9.service.BroadcastReceiver.fireIntent";
|
public static final String FIRE_INTENT = "com.fsck.k9.service.BroadcastReceiver.fireIntent";
|
||||||
public static String SCHEDULE_INTENT = "com.fsck.k9.service.BroadcastReceiver.scheduleIntent";
|
public static final String SCHEDULE_INTENT = "com.fsck.k9.service.BroadcastReceiver.scheduleIntent";
|
||||||
public static String CANCEL_INTENT = "com.fsck.k9.service.BroadcastReceiver.cancelIntent";
|
public static final String CANCEL_INTENT = "com.fsck.k9.service.BroadcastReceiver.cancelIntent";
|
||||||
|
|
||||||
public static String ALARMED_INTENT = "com.fsck.k9.service.BroadcastReceiver.pendingIntent";
|
public static final String ALARMED_INTENT = "com.fsck.k9.service.BroadcastReceiver.pendingIntent";
|
||||||
public static String AT_TIME = "com.fsck.k9.service.BroadcastReceiver.atTime";
|
public static final String AT_TIME = "com.fsck.k9.service.BroadcastReceiver.atTime";
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Integer receive(Context context, Intent intent, Integer tmpWakeLockId) {
|
public Integer receive(Context context, Intent intent, Integer tmpWakeLockId) {
|
||||||
|
@ -16,9 +16,9 @@ import com.fsck.k9.mail.power.TracingPowerManager.TracingWakeLock;
|
|||||||
|
|
||||||
public class CoreReceiver extends BroadcastReceiver {
|
public class CoreReceiver extends BroadcastReceiver {
|
||||||
|
|
||||||
public static String WAKE_LOCK_RELEASE = "com.fsck.k9.service.CoreReceiver.wakeLockRelease";
|
public static final String WAKE_LOCK_RELEASE = "com.fsck.k9.service.CoreReceiver.wakeLockRelease";
|
||||||
|
|
||||||
public static String WAKE_LOCK_ID = "com.fsck.k9.service.CoreReceiver.wakeLockId";
|
public static final String WAKE_LOCK_ID = "com.fsck.k9.service.CoreReceiver.wakeLockId";
|
||||||
|
|
||||||
private static ConcurrentHashMap<Integer, TracingWakeLock> wakeLocks = new ConcurrentHashMap<Integer, TracingWakeLock>();
|
private static ConcurrentHashMap<Integer, TracingWakeLock> wakeLocks = new ConcurrentHashMap<Integer, TracingWakeLock>();
|
||||||
private static AtomicInteger wakeLockSeq = new AtomicInteger(0);
|
private static AtomicInteger wakeLockSeq = new AtomicInteger(0);
|
||||||
|
@ -57,7 +57,7 @@ import com.fsck.k9.mail.power.TracingPowerManager.TracingWakeLock;
|
|||||||
*/
|
*/
|
||||||
public abstract class CoreService extends Service {
|
public abstract class CoreService extends Service {
|
||||||
|
|
||||||
public static String WAKE_LOCK_ID = "com.fsck.k9.service.CoreService.wakeLockId";
|
public static final String WAKE_LOCK_ID = "com.fsck.k9.service.CoreService.wakeLockId";
|
||||||
|
|
||||||
private static ConcurrentHashMap<Integer, TracingWakeLock> sWakeLocks =
|
private static ConcurrentHashMap<Integer, TracingWakeLock> sWakeLocks =
|
||||||
new ConcurrentHashMap<Integer, TracingWakeLock>();
|
new ConcurrentHashMap<Integer, TracingWakeLock>();
|
||||||
|
Loading…
Reference in New Issue
Block a user