Fixed whitespaces ChatWindow.fxml other javadocs in other classes aswell deleted unneccessary declarations

This commit is contained in:
Leonardo Brandenberger
2022-04-16 16:58:37 +02:00
parent 154b9d435d
commit 8cb83ef7ef
5 changed files with 92 additions and 98 deletions
@@ -120,12 +120,10 @@ public abstract class ConnectionHandler {
protected void sendData(String sender, String receiver, String type, String payload) {
if (connection.isAvailable()) {
new StringBuilder();
String data = new StringBuilder()
.append(sender + "\n")
.append(receiver + "\n")
.append(type + "\n")
.append(payload + "\n")
.toString();
String data = sender + "\n" +
receiver + "\n" +
type + "\n" +
payload + "\n";
try {
connection.send(data);
} catch (SocketException e) {