do...while to for

源码:

 for(Enumeration e = tblTest.keys(); e.hasMoreElements();)
                {
                    String key = (String)e.nextElement();
                    if(m_tblCache.containsKey(key))
                        throw new IllegalStringException(key);
                }

反编译后:

 do
                {
                    if(!e.hasMoreElements())
                        break label0;
                    key = (String)e.nextElement();
                } while(!m_tblCache.containsKey(key));
                throw new IllegalStringException(key);


你可能感兴趣的:(do...while to for)