Replaced LinkedList for ArrayList

This commit is contained in:
thesnowgoose 2016-04-02 10:31:54 -07:00
parent 51467f89fd
commit 0c735881c2
1 changed files with 3 additions and 6 deletions

View File

@ -20,10 +20,7 @@ package org.eclipse.jetty.util;
import java.nio.charset.Charset;
import java.nio.charset.StandardCharsets;
import java.util.Collections;
import java.util.LinkedList;
import java.util.List;
import java.util.ListIterator;
import java.util.*;
import java.util.regex.Pattern;
import org.eclipse.jetty.util.Utf8Appendable.NotUtf8Exception;
@ -515,9 +512,9 @@ public class URIUtil
if(path.startsWith("/.."))
return null;
List<String> directories = new LinkedList<>();
List<String> directories = new ArrayList<>();
Collections.addAll(directories, __PATH_SPLIT.split(path));
for(ListIterator<String> iterator = directories.listIterator(); iterator.hasNext();)
{
switch (iterator.next()) {