1
0

Inline single use local variable

This commit is contained in:
Gary Gregory
2024-06-30 08:33:02 -04:00
parent 5b35ee8622
commit ab4b5c50d8

View File

@@ -98,8 +98,7 @@ public class ChildFirstTestCase extends TestCase {
private static URL[] toURLArray(final Enumeration e) {
final ArrayList l = new ArrayList();
while (e.hasMoreElements()) {
final URL u = (URL) e.nextElement();
l.add(u);
l.add((URL) e.nextElement());
}
final URL[] tmp = new URL[l.size()];
return (URL[]) l.toArray(tmp);