From 024dbd1c32e2a801f0b67bb263320239fd72a8b3 Mon Sep 17 00:00:00 2001 From: cijo-saju Date: Tue, 28 Mar 2017 20:46:20 +0530 Subject: [PATCH] Removed unused import and fixed some annotations --- .../java/eu/siacs/conversations/entities/Conversation.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/eu/siacs/conversations/entities/Conversation.java b/src/main/java/eu/siacs/conversations/entities/Conversation.java index 771136bca..0a3e71e8d 100644 --- a/src/main/java/eu/siacs/conversations/entities/Conversation.java +++ b/src/main/java/eu/siacs/conversations/entities/Conversation.java @@ -2,6 +2,7 @@ package eu.siacs.conversations.entities; import android.content.ContentValues; import android.database.Cursor; +import android.support.annotation.NonNull; import net.java.otr4j.OtrException; import net.java.otr4j.crypto.OtrCryptoException; @@ -15,7 +16,6 @@ import org.json.JSONObject; import java.security.interfaces.DSAPublicKey; import java.util.ArrayList; -import java.util.Arrays; import java.util.Collections; import java.util.Comparator; import java.util.Iterator; @@ -370,7 +370,7 @@ public class Conversation extends AbstractEntity implements Blockable, Comparabl } @Override - public int compareTo(Conversation another) { + public int compareTo(@NonNull Conversation another) { final Message left = getLatestMessage(); final Message right = another.getLatestMessage(); if (left.getTimeSent() > right.getTimeSent()) {