Inline single use local variable

This commit is contained in:
Gary Gregory committed 2024-06-30 08:33:02 -04:00
1 parent 5b35ee8622
commit ab4b5c50d8
1 file changed
+1 -2
@@ -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);