--- jsr166/src/test/jtreg/util/Collections/FindSubList.java 2017/10/21 00:44:23 1.3 +++ jsr166/src/test/jtreg/util/Collections/FindSubList.java 2017/10/22 02:59:18 1.4 @@ -33,8 +33,8 @@ public class FindSubList { public static void main(String[] args) throws Exception { int N = 500; List source = new ArrayList(3 * N); - List target[]= new List[N+1]; - int index[] = new int[N+1]; + List[] target = new List[N+1]; + int[] index = new int[N+1]; for (int i=0; i<=N; i++) { List t = new ArrayList(); String s = Integer.toString(i, 2); @@ -50,8 +50,12 @@ public class FindSubList { } } - List src[] = {source, new LinkedList(source), new Vector(source), - Arrays.asList(source.toArray())}; + List[] src = { + source, + new LinkedList(source), + new Vector(source), + Arrays.asList(source.toArray()) + }; for (int j=0; j