From cb96911da37205773a5331d0864e0fc93241d0de Mon Sep 17 00:00:00 2001 From: cijo-saju Date: Tue, 28 Mar 2017 20:43:14 +0530 Subject: [PATCH] Saves some memory --- src/main/java/eu/siacs/conversations/entities/Conversation.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/eu/siacs/conversations/entities/Conversation.java b/src/main/java/eu/siacs/conversations/entities/Conversation.java index 3eff50c6c..771136bca 100644 --- a/src/main/java/eu/siacs/conversations/entities/Conversation.java +++ b/src/main/java/eu/siacs/conversations/entities/Conversation.java @@ -346,7 +346,7 @@ public class Conversation extends AbstractEntity implements Blockable, Comparabl public List getAcceptedCryptoTargets() { if (mode == MODE_SINGLE) { - return Arrays.asList(getJid().toBareJid()); + return Collections.singletonList(getJid().toBareJid()); } else { return getJidListAttribute(ATTRIBUTE_CRYPTO_TARGETS); }