Messaging: Replace explicit types
Change-Id: I2165b3dec73973a2a82d8b3c7c364b5f011e597d
This commit is contained in:
@@ -72,7 +72,7 @@ public class ConversationData extends BindableData {
|
||||
* for each message.
|
||||
*/
|
||||
public List<Integer> getPositions(final String conversationId, final List<Long> ids) {
|
||||
final ArrayList<Integer> result = new ArrayList<Integer>();
|
||||
final ArrayList<Integer> result = new ArrayList<>();
|
||||
|
||||
if (ids.isEmpty()) {
|
||||
return result;
|
||||
@@ -84,7 +84,7 @@ public class ConversationData extends BindableData {
|
||||
new String [] { conversationId }));
|
||||
if (c != null) {
|
||||
try {
|
||||
final Set<Long> idsSet = new HashSet<Long>(ids);
|
||||
final Set<Long> idsSet = new HashSet<>(ids);
|
||||
if (c.moveToLast()) {
|
||||
do {
|
||||
final long messageId = c.getLong(0);
|
||||
|
||||
Reference in New Issue
Block a user