From 37465db817384e4b19972e9d3381d8306cea73ee Mon Sep 17 00:00:00 2001 From: cijo-saju Date: Tue, 28 Mar 2017 21:02:20 +0530 Subject: [PATCH] Fixed package access --- .../siacs/conversations/entities/Conversation.java | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/src/main/java/eu/siacs/conversations/entities/Conversation.java b/src/main/java/eu/siacs/conversations/entities/Conversation.java index 0a3e71e8d..edba9cf3c 100644 --- a/src/main/java/eu/siacs/conversations/entities/Conversation.java +++ b/src/main/java/eu/siacs/conversations/entities/Conversation.java @@ -50,13 +50,15 @@ public class Conversation extends AbstractEntity implements Blockable, Comparabl public static final String MODE = "mode"; public static final String ATTRIBUTES = "attributes"; - public static final String ATTRIBUTE_NEXT_ENCRYPTION = "next_encryption"; - public static final String ATTRIBUTE_MUC_PASSWORD = "muc_password"; public static final String ATTRIBUTE_MUTED_TILL = "muted_till"; public static final String ATTRIBUTE_ALWAYS_NOTIFY = "always_notify"; - public static final String ATTRIBUTE_CRYPTO_TARGETS = "crypto_targets"; public static final String ATTRIBUTE_LAST_CLEAR_HISTORY = "last_clear_history"; + private static final String ATTRIBUTE_CRYPTO_TARGETS = "crypto_targets"; + + private static final String ATTRIBUTE_NEXT_ENCRYPTION = "next_encryption"; + static final String ATTRIBUTE_MUC_PASSWORD = "muc_password"; + private String draftMessage; private String name; private String contactUuid; @@ -870,7 +872,7 @@ public class Conversation extends AbstractEntity implements Blockable, Comparabl } } - public List getJidListAttribute(String key) { + private List getJidListAttribute(String key) { ArrayList list = new ArrayList<>(); synchronized (this.attributes) { try { @@ -889,7 +891,7 @@ public class Conversation extends AbstractEntity implements Blockable, Comparabl return list; } - public int getIntAttribute(String key, int defaultValue) { + private int getIntAttribute(String key, int defaultValue) { String value = this.getAttribute(key); if (value == null) { return defaultValue; @@ -915,7 +917,7 @@ public class Conversation extends AbstractEntity implements Blockable, Comparabl } } - public boolean getBooleanAttribute(String key, boolean defaultValue) { + private boolean getBooleanAttribute(String key, boolean defaultValue) { String value = this.getAttribute(key); if (value == null) { return defaultValue;