From: Jérôme Benoit Date: Fri, 9 Mar 2018 22:18:21 +0000 (+0100) Subject: Code cleanups. X-Git-Url: https://git.piment-noir.org/?p=TD_SR.git;a=commitdiff_plain;h=3657cead42bd7dabf2eab5be477c3730fe7f89b2 Code cleanups. Signed-off-by: Jérôme Benoit --- diff --git a/TD1/exo3/BufferCirc.java b/TD1/exo3/BufferCirc.java index 91c458b..e03e8ea 100644 --- a/TD1/exo3/BufferCirc.java +++ b/TD1/exo3/BufferCirc.java @@ -33,7 +33,7 @@ public class BufferCirc { while(isFull()) { try { System.out.println("Buffer is full: " + Thread.currentThread().getName() - + " is waiting, size: " + nbObj); + + " is waiting, size: " + nbObj); wait(); } catch (InterruptedException e) {} @@ -50,7 +50,7 @@ public class BufferCirc { while(isEmpty()) { try { System.out.println("Buffer is empty: " + Thread.currentThread().getName() - + " is waiting, size: " + nbObj); + + " is waiting, size: " + nbObj); wait(); } catch (InterruptedException e) {}