Kaydet (Commit) 821386a8 authored tarafından Noel Grandin's avatar Noel Grandin

java: simplify some for loops to while loops

Change-Id: I323ab12c634d3baa4f624b63d7d483112c23192c
üst 58e5a71c
......@@ -64,7 +64,7 @@ public class JREProperties
Properties p = System.getProperties();
Enumeration e = p.propertyNames();
for (; e.hasMoreElements() ;) {
while (e.hasMoreElements()) {
String sProp = (String) e.nextElement();
String sCompleteProp = sProp + "=" + p.getProperty(sProp);
char[] arChars = new char[sCompleteProp.length()];
......
......@@ -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());
}
......
......@@ -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();
......
......@@ -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());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment