This is an automated email from the ASF dual-hosted git repository. markt pushed a commit to branch 10.0.x in repository https://gitbox.apache.org/repos/asf/tomcat.git
The following commit(s) were added to refs/heads/10.0.x by this push: new baf78ce9ce No need for LinkedList here - use ArrayList baf78ce9ce is described below commit baf78ce9ce9bf1741be007bfcb00098b96a4ddc0 Author: Mark Thomas <ma...@apache.org> AuthorDate: Fri Sep 16 09:22:47 2022 +0100 No need for LinkedList here - use ArrayList --- java/org/apache/tomcat/buildutil/CheckEol.java | 3 +-- java/org/apache/tomcat/buildutil/RepeatableArchive.java | 4 ++-- java/org/apache/tomcat/buildutil/Txt2Html.java | 4 ++-- 3 files changed, 5 insertions(+), 6 deletions(-) diff --git a/java/org/apache/tomcat/buildutil/CheckEol.java b/java/org/apache/tomcat/buildutil/CheckEol.java index f9b98399c8..35851963d0 100644 --- a/java/org/apache/tomcat/buildutil/CheckEol.java +++ b/java/org/apache/tomcat/buildutil/CheckEol.java @@ -21,7 +21,6 @@ import java.io.File; import java.io.FileInputStream; import java.io.IOException; import java.util.ArrayList; -import java.util.LinkedList; import java.util.List; import org.apache.tools.ant.BuildException; @@ -42,7 +41,7 @@ import org.apache.tools.ant.types.FileSet; public class CheckEol extends Task { /** The files to be checked */ - private final List<FileSet> filesets = new LinkedList<>(); + private final List<FileSet> filesets = new ArrayList<>(); /** The line ending mode (either LF, CRLF, or null for OS specific) */ private Mode mode; diff --git a/java/org/apache/tomcat/buildutil/RepeatableArchive.java b/java/org/apache/tomcat/buildutil/RepeatableArchive.java index a6442f8138..f94c26e32a 100644 --- a/java/org/apache/tomcat/buildutil/RepeatableArchive.java +++ b/java/org/apache/tomcat/buildutil/RepeatableArchive.java @@ -25,9 +25,9 @@ import java.nio.file.StandardCopyOption; import java.nio.file.attribute.FileTime; import java.text.ParseException; import java.text.SimpleDateFormat; +import java.util.ArrayList; import java.util.Date; import java.util.Enumeration; -import java.util.LinkedList; import java.util.List; import java.util.zip.ZipEntry; import java.util.zip.ZipFile; @@ -49,7 +49,7 @@ import org.apache.tools.ant.types.FileSet; */ public class RepeatableArchive extends Task { - private final List<FileSet> filesets = new LinkedList<>(); + private final List<FileSet> filesets = new ArrayList<>(); private String datetime; private String pattern; diff --git a/java/org/apache/tomcat/buildutil/Txt2Html.java b/java/org/apache/tomcat/buildutil/Txt2Html.java index 8375fc86ba..42e4b95d58 100644 --- a/java/org/apache/tomcat/buildutil/Txt2Html.java +++ b/java/org/apache/tomcat/buildutil/Txt2Html.java @@ -24,7 +24,7 @@ import java.io.IOException; import java.io.InputStreamReader; import java.io.OutputStreamWriter; import java.io.PrintWriter; -import java.util.LinkedList; +import java.util.ArrayList; import java.util.List; import org.apache.tools.ant.BuildException; @@ -50,7 +50,7 @@ public class Txt2Html private File todir; /** The file to be converted into HTML */ - private final List<FileSet> filesets = new LinkedList<>(); + private final List<FileSet> filesets = new ArrayList<>(); /** * The encoding of the source files (.java and .jsp). Once they use --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org