Use LinkedList instead of ArrayList
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@115921 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
1 parent
c768d40496
commit
fa44d923c1
3 files changed
+11
-11
No files matched your search
@@ -24,8 +24,8 @@ import java.io.FileNotFoundException;
|
||||
import java.io.InputStream;
|
||||
import java.io.OutputStream;
|
||||
import java.io.PrintWriter;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Iterator;
|
||||
import java.util.LinkedList;
|
||||
import java.util.List;
|
||||
import java.util.Set;
|
||||
import java.util.TreeSet;
|
||||
@@ -42,7 +42,7 @@ import org.w3c.tidy.Tidy;
|
||||
|
||||
/**
|
||||
* @author <a href="mailto:bwalding@apache.org">Ben Walding</a>
|
||||
* @version $Id: FileToCheck.java,v 1.15 2004/03/02 15:09:17 evenisse Exp $
|
||||
* @version $Id: FileToCheck.java,v 1.16 2004/08/01 21:05:32 carlos Exp $
|
||||
*/
|
||||
public class FileToCheck
|
||||
{
|
||||
@@ -57,7 +57,7 @@ public class FileToCheck
|
||||
private String message = "";
|
||||
private int successful;
|
||||
private int unsuccessful;
|
||||
private List links = new ArrayList();
|
||||
private List links = new LinkedList();
|
||||
|
||||
public static final String STATUS_UNKNOWN = null;
|
||||
public static final String STATUS_JTIDY_FAILURE = "Unable to tidy source";
|
||||
@@ -196,7 +196,7 @@ public class FileToCheck
|
||||
|
||||
private Set findUniqueLinks(Document doc)
|
||||
{
|
||||
List xpathResults = new ArrayList();
|
||||
List xpathResults = new LinkedList();
|
||||
|
||||
xpathResults.addAll(doc.selectNodes("//a/@href"));
|
||||
xpathResults.addAll(doc.selectNodes("//img/@src"));
|
||||
|
||||
@@ -22,8 +22,8 @@ import java.io.FileOutputStream;
|
||||
import java.io.FilenameFilter;
|
||||
import java.io.OutputStreamWriter;
|
||||
import java.io.PrintWriter;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Iterator;
|
||||
import java.util.LinkedList;
|
||||
import java.util.List;
|
||||
import java.util.StringTokenizer;
|
||||
|
||||
@@ -42,7 +42,7 @@ import org.apache.maven.project.Project;
|
||||
*
|
||||
* @author <a href="mailto:bwalding@apache.org">Ben Walding</a>
|
||||
* @author <a href="mailto:carlos@apache.org">Carlos Sanchez</a>
|
||||
* @version $Id: LinkCheck.java,v 1.13 2004/07/26 16:16:35 carlos Exp $
|
||||
* @version $Id: LinkCheck.java,v 1.14 2004/08/01 21:05:33 carlos Exp $
|
||||
*/
|
||||
public class LinkCheck
|
||||
{
|
||||
@@ -104,9 +104,9 @@ public class LinkCheck
|
||||
}
|
||||
LinkValidatorManager validator = getLinkValidatorManager();
|
||||
|
||||
filesToCheck = new ArrayList();
|
||||
filesToCheck = new LinkedList();
|
||||
validator.loadCache(cache);
|
||||
List files = new ArrayList();
|
||||
List files = new LinkedList();
|
||||
LOG.debug("Locating all files to be checked...");
|
||||
findFiles(files, baseDir);
|
||||
LOG.debug("Located all files to be checked.");
|
||||
|
||||
@@ -21,8 +21,8 @@ import java.io.File;
|
||||
import java.io.FileInputStream;
|
||||
import java.io.FileNotFoundException;
|
||||
import java.io.FileOutputStream;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Iterator;
|
||||
import java.util.LinkedList;
|
||||
import java.util.List;
|
||||
|
||||
import org.apache.commons.logging.Log;
|
||||
@@ -31,7 +31,7 @@ import org.apache.commons.logging.LogFactory;
|
||||
/**
|
||||
* @author <a href="mailto:bwalding@apache.org">Ben Walding</a>
|
||||
* @author <a href="mailto:carlos@apache.org">Carlos Sanchez</a>
|
||||
* @version $Id: LinkValidatorManager.java,v 1.6 2004/07/26 16:16:34 carlos Exp $
|
||||
* @version $Id: LinkValidatorManager.java,v 1.7 2004/08/01 21:05:32 carlos Exp $
|
||||
*/
|
||||
|
||||
public class LinkValidatorManager {
|
||||
@@ -40,7 +40,7 @@ public class LinkValidatorManager {
|
||||
*/
|
||||
private static Log LOG = LogFactory.getLog(LinkValidatorManager.class);
|
||||
|
||||
private List validators = new ArrayList();
|
||||
private List validators = new LinkedList();
|
||||
private LinkValidatorCache cache = new LinkValidatorCache(this);
|
||||
private String[] excludes = new String[0];
|
||||
|
||||
|
||||
Reference in new issue
Block a user