diff --git a/src/main/java/envoy/client/LocalDB.java b/src/main/java/envoy/client/LocalDB.java index 53cd1eb..11b5526 100644 --- a/src/main/java/envoy/client/LocalDB.java +++ b/src/main/java/envoy/client/LocalDB.java @@ -253,7 +253,7 @@ public class LocalDB { } } - // Updating UserStatus of all Users in LocalDB + // Updating UserStatus of all users in LocalDB for (int j = 0; j < returnSync.getUsers().size(); j++) { for (int k = 0; k < getChats().size(); k++) { if (getChats().get(k).getRecipient().getID() == returnSync.getUsers().get(j).getID()) { @@ -278,7 +278,7 @@ public class LocalDB { public void addMessageToSync(Message message) { sync.getMessages().add(message); } /** - * Adds a user to the "sync" Sync object. + * Adds a user to the {@code sync} {@link Sync} object. * * @param user * @since Envoy v0.1-alpha @@ -286,7 +286,7 @@ public class LocalDB { public void addUserToSync(User user) { sync.getUsers().add(user); } /** - * Adds the unread Messages returned from the server in the latest sync to the + * Adds the unread messages returned from the server in the latest sync to the * right chats in the LocalDB. * * @param localDB @@ -305,7 +305,7 @@ public class LocalDB { } /** - * Gets all Messages with state SENT from the LocalDB and adds them to the + * Gets all messages with state SENT from the LocalDB and adds them to the * "sync" Sync object. * * @param localDB @@ -322,9 +322,9 @@ public class LocalDB { } /** - * Changes all Messages with State RECEIVED of a specific chat to State READ. + * Changes all messages with State RECEIVED of a specific chat to State READ. *
- * Adds these Messages to the "readMessages" Sync object. + * Adds these Messages to the {@code readMessages} {@link Sync} object. * * @param currentChat * @since Envoy v0.1-alpha @@ -341,7 +341,7 @@ public class LocalDB { } /** - * Adds a Message with State WAITING to a specific chat in the LocalDB. + * Adds a message with State WAITING to a specific chat in the LocalDB. * * @param message * @param currentChat @@ -350,7 +350,7 @@ public class LocalDB { public void addWaitingMessageToLocalDB(Message message, Chat currentChat) { currentChat.appendMessage(message); } /** - * Adds all Messages with State WAITING from the LocalDB to the Sync. + * Adds all messages with State WAITING from the {@link LocalDB} to the Sync. * * @param localDB * @since Envoy v0.1-alpha @@ -369,7 +369,7 @@ public class LocalDB { /** - * Clears the "unreadMessagesSync" Sync object. + * Clears the {@code unreadMessagesSync} {@link Sync} object. * * @since Envoy v0.1-alpha */