X-Git-Url: https://git.piment-noir.org/?p=TD_SR.git;a=blobdiff_plain;f=TD2%2Fclient%2FThreadClientSend.java;fp=TD2%2Fclient%2FThreadClientSend.java;h=2ba2491e48a49f2e46d42ab7a1a6431d6a652be7;hp=639228fe45f6eef313a2abd9998b92ca721c9b9d;hb=03a13b6164d44f0c74e5cd180abecbb8e0dda30a;hpb=73a5e231a2e60b6a4e141b89ff56208dcf225b0b diff --git a/TD2/client/ThreadClientSend.java b/TD2/client/ThreadClientSend.java index 639228f..2ba2491 100644 --- a/TD2/client/ThreadClientSend.java +++ b/TD2/client/ThreadClientSend.java @@ -17,7 +17,7 @@ public class ThreadClientSend implements Runnable { if (line.equals(".")) { end = true; } - if (line.length() != 0) { + if (!line.isEmpty()) { client.sendMsg(line); System.out.println(Thread.currentThread().getName() + " a envoye " + line); }