mirror of
https://github.com/moparisthebest/k-9
synced 2024-11-23 18:02:15 -05:00
Fix DM_BOXED_PRIMITIVE_FOR_PARSING findbugs warning
This commit is contained in:
parent
e2a9dd3042
commit
b69bba01da
@ -2888,7 +2888,7 @@ public class MessageCompose extends K9Activity implements OnClickListener,
|
||||
int cursorPosition = 0;
|
||||
if (k9identity.containsKey(IdentityField.CURSOR_POSITION)) {
|
||||
try {
|
||||
cursorPosition = Integer.valueOf(k9identity.get(IdentityField.CURSOR_POSITION)).intValue();
|
||||
cursorPosition = Integer.parseInt(k9identity.get(IdentityField.CURSOR_POSITION));
|
||||
} catch (Exception e) {
|
||||
Log.e(K9.LOG_TAG, "Could not parse cursor position for MessageCompose; continuing.", e);
|
||||
}
|
||||
|
@ -65,12 +65,12 @@ public class EmailProviderCacheCursor extends CursorWrapper {
|
||||
String value = mCache.getValueForMessage(messageId, columnName);
|
||||
|
||||
if (value != null) {
|
||||
return Integer.valueOf(value);
|
||||
return Integer.parseInt(value);
|
||||
}
|
||||
|
||||
value = mCache.getValueForThread(threadRootId, columnName);
|
||||
if (value != null) {
|
||||
return Integer.valueOf(value);
|
||||
return Integer.parseInt(value);
|
||||
}
|
||||
|
||||
return super.getInt(columnIndex);
|
||||
|
@ -145,7 +145,7 @@ public class TimePickerPreference extends DialogPreference implements
|
||||
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 Integer.valueOf(time.split(":")[1]);
|
||||
return Integer.parseInt(time.split(":")[1]);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user