summaryrefslogtreecommitdiff
path: root/jurt/test
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2014-10-15 16:25:10 +0200
committerNoel Grandin <noel@peralex.com>2014-10-16 08:15:52 +0200
commitfa22664be218c211c41342c6296616c316b2c3b1 (patch)
tree2118e12dffce57f5027ef4aed227d27acf8c6ed6 /jurt/test
parent94ae3e827b71da5be77ff04522ff156770801b25 (diff)
java: always use braces for while loops
Change-Id: Iff896b0cace8b8305528b3b0140004ea856169ce
Diffstat (limited to 'jurt/test')
-rw-r--r--jurt/test/com/sun/star/lib/uno/environments/remote/ThreadPool_Test.java12
1 files changed, 8 insertions, 4 deletions
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);