diff options
author | Noel Grandin <noel@peralex.com> | 2014-08-21 09:05:27 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2014-10-07 13:20:03 +0200 |
commit | 821386a80f8b31f1ec32aa258c113183ef4c4881 (patch) | |
tree | 1a77d1a4ca8ac04f2007c9aa7bf350fe864c366a /qadevOOo | |
parent | 58e5a71c2e66f053876ebbe37fa4ae383af2d8fc (diff) |
java: simplify some for loops to while loops
Change-Id: I323ab12c634d3baa4f624b63d7d483112c23192c
Diffstat (limited to 'qadevOOo')
-rw-r--r-- | qadevOOo/runner/helper/APIDescGetter.java | 4 | ||||
-rw-r--r-- | qadevOOo/runner/share/DescGetter.java | 2 | ||||
-rw-r--r-- | qadevOOo/tests/java/ifc/frame/_XDesktop.java | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/qadevOOo/runner/helper/APIDescGetter.java b/qadevOOo/runner/helper/APIDescGetter.java index 978af46d4345..4171dc231e2b 100644 --- a/qadevOOo/runner/helper/APIDescGetter.java +++ b/qadevOOo/runner/helper/APIDescGetter.java @@ -724,7 +724,7 @@ public class APIDescGetter extends DescGetter ArrayList<String> namesList = new ArrayList<String>(); StringTokenizer st = new StringTokenizer(job, ","); - for (; st.hasMoreTokens();) + while (st.hasMoreTokens()) { String token = st.nextToken(); @@ -742,7 +742,7 @@ public class APIDescGetter extends DescGetter ArrayList<String> namesList = new ArrayList<String>(); StringTokenizer st = new StringTokenizer(job, ","); - for (; st.hasMoreTokens();) + while (st.hasMoreTokens()) { namesList.add(st.nextToken()); } diff --git a/qadevOOo/runner/share/DescGetter.java b/qadevOOo/runner/share/DescGetter.java index ad0ce136786e..53e0f93c0e28 100644 --- a/qadevOOo/runner/share/DescGetter.java +++ b/qadevOOo/runner/share/DescGetter.java @@ -168,7 +168,7 @@ public abstract class DescGetter ArrayList<String> namesList = new ArrayList<String>(); StringTokenizer st = new StringTokenizer(job, ","); - for (; st.hasMoreTokens();) + while (st.hasMoreTokens()) { String token = st.nextToken(); diff --git a/qadevOOo/tests/java/ifc/frame/_XDesktop.java b/qadevOOo/tests/java/ifc/frame/_XDesktop.java index 207d0915c6b5..ac1457197cfd 100644 --- a/qadevOOo/tests/java/ifc/frame/_XDesktop.java +++ b/qadevOOo/tests/java/ifc/frame/_XDesktop.java @@ -56,7 +56,7 @@ public class _XDesktop extends MultiMethodTest { boolean result = false; try { - for (; xEnum.hasMoreElements();) { + while (xEnum.hasMoreElements()) { try { AnyConverter.toObject( new Type(XInterface.class), xEnum.nextElement()); |