< prev index next >

test/hotspot/jtreg/gc/TestAllocateHeapAtError.java

8217332: JTREG: Clean up, use generics instead of raw types

*** 40,50 **** import java.util.Collections; import java.util.UUID; public class TestAllocateHeapAtError { public static void main(String args[]) throws Exception { ! ArrayList<String> vmOpts = new ArrayList(); String testVmOptsStr = System.getProperty("test.java.opts"); if (!testVmOptsStr.isEmpty()) { String[] testVmOpts = testVmOptsStr.split(" "); Collections.addAll(vmOpts, testVmOpts); --- 40,50 ---- import java.util.Collections; import java.util.UUID; public class TestAllocateHeapAtError { public static void main(String args[]) throws Exception { ! ArrayList<String> vmOpts = new ArrayList<>(); String testVmOptsStr = System.getProperty("test.java.opts"); if (!testVmOptsStr.isEmpty()) { String[] testVmOpts = testVmOptsStr.split(" "); Collections.addAll(vmOpts, testVmOpts);
< prev index next >