Saves some memory

This commit is contained in:
cijo-saju 2017-03-28 20:43:14 +05:30
parent d8901441f6
commit cb96911da3

View file

@ -346,7 +346,7 @@ public class Conversation extends AbstractEntity implements Blockable, Comparabl
public List<Jid> getAcceptedCryptoTargets() { public List<Jid> getAcceptedCryptoTargets() {
if (mode == MODE_SINGLE) { if (mode == MODE_SINGLE) {
return Arrays.asList(getJid().toBareJid()); return Collections.singletonList(getJid().toBareJid());
} else { } else {
return getJidListAttribute(ATTRIBUTE_CRYPTO_TARGETS); return getJidListAttribute(ATTRIBUTE_CRYPTO_TARGETS);
} }