mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 15:24:43 +02:00
8263561: Re-examine uses of LinkedList
Reviewed-by: redestad
This commit is contained in:
parent
6a3f8343bc
commit
249d641889
9 changed files with 45 additions and 47 deletions
|
@ -41,7 +41,6 @@ import java.util.ArrayList;
|
|||
import java.util.Arrays;
|
||||
import java.util.HashMap;
|
||||
import java.util.LinkedHashMap;
|
||||
import java.util.LinkedList;
|
||||
import java.util.List;
|
||||
import java.util.ListIterator;
|
||||
import java.util.Map;
|
||||
|
@ -245,7 +244,7 @@ final class ProxyGenerator extends ClassWriter {
|
|||
* List of return types that are not yet known to be
|
||||
* assignable from ("covered" by) any of the others.
|
||||
*/
|
||||
LinkedList<Class<?>> uncoveredReturnTypes = new LinkedList<>();
|
||||
List<Class<?>> uncoveredReturnTypes = new ArrayList<>(1);
|
||||
|
||||
nextNewReturnType:
|
||||
for (ProxyMethod pm : methods) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue