Merge remote-tracking branch 'origin/develop' into f/groups

Conflicts:
	src/main/java/envoy/server/data/User.java
	src/main/java/envoy/server/processors/IDGeneratorRequestProcessor.java
	src/main/java/envoy/server/processors/MessageProcessor.java
This commit is contained in:
delvh 2020-03-26 17:18:27 +01:00
commit f91b193d59
3 changed files with 1 additions and 4 deletions

View File

@ -5,7 +5,6 @@ import java.util.List;
import javax.persistence.*; import javax.persistence.*;
/** /**
* This class serves as a way to let Hibernate communicate with the server * This class serves as a way to let Hibernate communicate with the server
* without bringing the dependency of JPA/Hibernate into the client.<br> * without bringing the dependency of JPA/Hibernate into the client.<br>

View File

@ -28,7 +28,6 @@ public class IDGeneratorRequestProcessor implements ObjectProcessor<IDGeneratorR
public void process(IDGeneratorRequest input, long socketId, ObjectWriteProxy writeProxy) throws IOException { public void process(IDGeneratorRequest input, long socketId, ObjectWriteProxy writeProxy) throws IOException {
System.out.println("Received id generation request."); System.out.println("Received id generation request.");
var generator = createIDGenerator(); var generator = createIDGenerator();
System.out.println("Sending new id generator " + generator); System.out.println("Sending new id generator " + generator);
writeProxy.write(socketId, generator); writeProxy.write(socketId, generator);
} }

View File

@ -27,7 +27,6 @@ public class MessageProcessor implements ObjectProcessor<Message> {
@Override @Override
public void process(Message message, long socketId, ObjectWriteProxy writeProxy) { public void process(Message message, long socketId, ObjectWriteProxy writeProxy) {
message.nextStatus(); message.nextStatus();
ConnectionManager connectionManager = ConnectionManager.getInstance(); ConnectionManager connectionManager = ConnectionManager.getInstance();
Contact recipient = PersistenceManager.getInstance().getContactById(message.getID()); Contact recipient = PersistenceManager.getInstance().getContactById(message.getID());