1
0
mirror of https://github.com/moparisthebest/k-9 synced 2024-11-27 11:42:16 -05:00

Fix DM_BOXED_PRIMITIVE_FOR_PARSING findbugs warning

This commit is contained in:
cketti 2015-01-03 02:02:54 +01:00
parent e2a9dd3042
commit b69bba01da
3 changed files with 5 additions and 5 deletions

View File

@ -2888,7 +2888,7 @@ public class MessageCompose extends K9Activity implements OnClickListener,
int cursorPosition = 0; int cursorPosition = 0;
if (k9identity.containsKey(IdentityField.CURSOR_POSITION)) { if (k9identity.containsKey(IdentityField.CURSOR_POSITION)) {
try { try {
cursorPosition = Integer.valueOf(k9identity.get(IdentityField.CURSOR_POSITION)).intValue(); cursorPosition = Integer.parseInt(k9identity.get(IdentityField.CURSOR_POSITION));
} catch (Exception e) { } catch (Exception e) {
Log.e(K9.LOG_TAG, "Could not parse cursor position for MessageCompose; continuing.", e); Log.e(K9.LOG_TAG, "Could not parse cursor position for MessageCompose; continuing.", e);
} }

View File

@ -65,12 +65,12 @@ public class EmailProviderCacheCursor extends CursorWrapper {
String value = mCache.getValueForMessage(messageId, columnName); String value = mCache.getValueForMessage(messageId, columnName);
if (value != null) { if (value != null) {
return Integer.valueOf(value); return Integer.parseInt(value);
} }
value = mCache.getValueForThread(threadRootId, columnName); value = mCache.getValueForThread(threadRootId, columnName);
if (value != null) { if (value != null) {
return Integer.valueOf(value); return Integer.parseInt(value);
} }
return super.getInt(columnIndex); return super.getInt(columnIndex);

View File

@ -145,7 +145,7 @@ public class TimePickerPreference extends DialogPreference implements
return -1; return -1;
} }
return Integer.valueOf(time.split(":")[0]); return Integer.parseInt(time.split(":")[0]);
} }
/** /**
@ -159,7 +159,7 @@ public class TimePickerPreference extends DialogPreference implements
return -1; return -1;
} }
return Integer.valueOf(time.split(":")[1]); return Integer.parseInt(time.split(":")[1]);
} }
/** /**