From ae9d2238b6c79f51d9e63426f550f48111459af0 Mon Sep 17 00:00:00 2001 From: delvh Date: Tue, 18 Feb 2020 16:36:31 +0100 Subject: [PATCH] Added newline at the end of PersistenceManager --- src/main/java/envoy/server/data/PersistenceManager.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main/java/envoy/server/data/PersistenceManager.java b/src/main/java/envoy/server/data/PersistenceManager.java index 208db2f..57fc469 100644 --- a/src/main/java/envoy/server/data/PersistenceManager.java +++ b/src/main/java/envoy/server/data/PersistenceManager.java @@ -184,15 +184,15 @@ public class PersistenceManager { * @since Envoy Server Standalone v0.1-alpha */ public void addContact(long userId1, long userId2) { - + // Get users by ID User u1 = getUserById(userId1); User u2 = getUserById(userId2); - + // Add users to each others contact lists u1.getContacts().add(u2); u2.getContacts().add(u1); - + // Synchronize changes with the database transaction.begin(); entityManager.merge(u1); @@ -226,4 +226,4 @@ public class PersistenceManager { entityManager.remove(obj); transaction.commit(); } -} \ No newline at end of file +}