diff options
author | Noel Grandin <noel@peralex.com> | 2014-10-15 16:25:10 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2014-10-16 08:15:52 +0200 |
commit | fa22664be218c211c41342c6296616c316b2c3b1 (patch) | |
tree | 2118e12dffce57f5027ef4aed227d27acf8c6ed6 /javaunohelper/test | |
parent | 94ae3e827b71da5be77ff04522ff156770801b25 (diff) |
java: always use braces for while loops
Change-Id: Iff896b0cace8b8305528b3b0140004ea856169ce
Diffstat (limited to 'javaunohelper/test')
-rw-r--r-- | javaunohelper/test/com/sun/star/lib/uno/helper/InterfaceContainer_Test.java | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/javaunohelper/test/com/sun/star/lib/uno/helper/InterfaceContainer_Test.java b/javaunohelper/test/com/sun/star/lib/uno/helper/InterfaceContainer_Test.java index 7459fae4085a..d9488114d420 100644 --- a/javaunohelper/test/com/sun/star/lib/uno/helper/InterfaceContainer_Test.java +++ b/javaunohelper/test/com/sun/star/lib/uno/helper/InterfaceContainer_Test.java @@ -571,11 +571,13 @@ public class InterfaceContainer_Test cont.addAll(list1); // go to the end of our list and list1 ListIterator it= cont.listIterator(); - while (it.hasNext()) + while (it.hasNext()) { it.next(); + } ListIterator it_list1= list1.listIterator(); - while (it_list1.hasNext()) + while (it_list1.hasNext()) { it_list1.next(); + } while (it.hasPrevious()) { @@ -612,8 +614,9 @@ public class InterfaceContainer_Test ListIterator it; cont.addAll(list1); it= cont.listIterator(); - while (it.hasNext()) + while (it.hasNext()) { it.next(); + } assertEquals(it.previousIndex(), 2); it.previous(); |