mirror of
https://github.com/moparisthebest/Conversations
synced 2024-11-30 20:52:21 -05:00
Removed unused import and fixed some annotations
This commit is contained in:
parent
cb96911da3
commit
024dbd1c32
@ -2,6 +2,7 @@ package eu.siacs.conversations.entities;
|
|||||||
|
|
||||||
import android.content.ContentValues;
|
import android.content.ContentValues;
|
||||||
import android.database.Cursor;
|
import android.database.Cursor;
|
||||||
|
import android.support.annotation.NonNull;
|
||||||
|
|
||||||
import net.java.otr4j.OtrException;
|
import net.java.otr4j.OtrException;
|
||||||
import net.java.otr4j.crypto.OtrCryptoException;
|
import net.java.otr4j.crypto.OtrCryptoException;
|
||||||
@ -15,7 +16,6 @@ import org.json.JSONObject;
|
|||||||
|
|
||||||
import java.security.interfaces.DSAPublicKey;
|
import java.security.interfaces.DSAPublicKey;
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.Arrays;
|
|
||||||
import java.util.Collections;
|
import java.util.Collections;
|
||||||
import java.util.Comparator;
|
import java.util.Comparator;
|
||||||
import java.util.Iterator;
|
import java.util.Iterator;
|
||||||
@ -370,7 +370,7 @@ public class Conversation extends AbstractEntity implements Blockable, Comparabl
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public int compareTo(Conversation another) {
|
public int compareTo(@NonNull Conversation another) {
|
||||||
final Message left = getLatestMessage();
|
final Message left = getLatestMessage();
|
||||||
final Message right = another.getLatestMessage();
|
final Message right = another.getLatestMessage();
|
||||||
if (left.getTimeSent() > right.getTimeSent()) {
|
if (left.getTimeSent() > right.getTimeSent()) {
|
||||||
|
Loading…
Reference in New Issue
Block a user