Removed unused import and fixed some annotations

This commit is contained in:
cijo-saju 2017-03-28 20:46:20 +05:30
parent cb96911da3
commit 024dbd1c32
1 changed files with 2 additions and 2 deletions

View File

@ -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()) {