Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

8263561: Re-examine uses of LinkedList #2744

wants to merge 5 commits into from
Changes from 1 commit
File filter
Filter by extension
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
@@ -241,7 +241,7 @@ private static void checkReturnTypes(List<ProxyMethod> methods) {
* List of return types that are not yet known to be
* assignable from ("covered" by) any of the others.
ArrayList<Class<?>> uncoveredReturnTypes = new ArrayList<>();
List<Class<?>> uncoveredReturnTypes = new ArrayList<>(1);

for (ProxyMethod pm : methods) {
@@ -132,13 +132,13 @@ public static JarIndex getJarIndex(JarFile jar) throws IOException {

* Add the key, value pair to the hashmap, the value will
* be put in a linked list which is created if necessary.
* be put in a list which is created if necessary.
private void addToList(String key, String value,
HashMap<String, List<String>> t) {
List<String> list = t.get(key);
if (list == null) {
list = new ArrayList<>();
list = new ArrayList<>(1);
t.put(key, list);
} else if (!list.contains(value)) {
@@ -166,7 +166,7 @@ private void addToList(String key, String value,
* Add the mapping from the specified file to the specified
* jar file. If there were no mapping for the package of the
* specified file before, a new linked list will be created,
* specified file before, a new list will be created,
* the jar file is added to the list and a new mapping from
* the package to the jar file list is added to the hashmap.
* Otherwise, the jar file will be added to the end of the