From fa22664be218c211c41342c6296616c316b2c3b1 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Wed, 15 Oct 2014 16:25:10 +0200 Subject: java: always use braces for while loops Change-Id: Iff896b0cace8b8305528b3b0140004ea856169ce --- .../star/lib/uno/environments/remote/ThreadPool_Test.java | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'jurt/test') diff --git a/jurt/test/com/sun/star/lib/uno/environments/remote/ThreadPool_Test.java b/jurt/test/com/sun/star/lib/uno/environments/remote/ThreadPool_Test.java index 94dfb884392f..aff5def10cb8 100644 --- a/jurt/test/com/sun/star/lib/uno/environments/remote/ThreadPool_Test.java +++ b/jurt/test/com/sun/star/lib/uno/environments/remote/ThreadPool_Test.java @@ -73,8 +73,9 @@ public class ThreadPool_Test { synchronized(workAt) { putJob(workAt, false, threadId, "notifyme"); - while(!workAt._notified) + while(!workAt._notified) { workAt.wait(); + } } assertEquals(TestWorkAt.MESSAGES, workAt._counter); @@ -94,8 +95,9 @@ public class ThreadPool_Test { synchronized(workAt) { putJob(workAt, true, threadId, "notifyme"); - while(!workAt._notified) + while(!workAt._notified) { workAt.wait(); + } } assertEquals(TestWorkAt.MESSAGES, workAt._counter); @@ -161,8 +163,9 @@ public class ThreadPool_Test { synchronized(workAt) { putJob(workAt, true, threadId, "notifyme"); - while(!workAt._notified) + while(!workAt._notified) { workAt.wait(); + } } assertTrue(workAt.passedAsyncTest()); @@ -322,8 +325,9 @@ public class ThreadPool_Test { synchronized(workAt) { putJob(workAt, false, threadId, "notifyme"); - while(!workAt._notified) + while(!workAt._notified) { workAt.wait(); + } } assertEquals(TestWorkAt.MESSAGES, workAt._async_counter); -- cgit