Skip to content

Commit fa1cebe

Browse files
author
Andrey Turbanov
committed
8303266: Prefer ArrayList to LinkedList in JImageTask
Reviewed-by: jlaskey
1 parent 5f153e0 commit fa1cebe

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/jdk.jlink/share/classes/jdk/tools/jimage/JImageTask.java

+2-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2014, 2020, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2014, 2023, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -33,7 +33,6 @@
3333
import java.nio.file.PathMatcher;
3434
import java.util.ArrayList;
3535
import java.util.Arrays;
36-
import java.util.LinkedList;
3736
import java.util.List;
3837
import java.util.Locale;
3938
import java.util.MissingResourceException;
@@ -110,7 +109,7 @@ static class OptionsValues {
110109
boolean help;
111110
boolean verbose;
112111
boolean version;
113-
List<File> jimages = new LinkedList<>();
112+
List<File> jimages = new ArrayList<>();
114113
}
115114

116115
enum Task {

0 commit comments

Comments
 (0)