Fixed whitespaces ChatWindow.fxml other javadocs in other classes aswell deleted unneccessary declarations
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user