diff --git a/test/hotspot/jtreg/gc/TestAllocateHeapAtError.java b/test/hotspot/jtreg/gc/TestAllocateHeapAtError.java index d5e5cd57ea4..dd8f724e93f 100644 --- a/test/hotspot/jtreg/gc/TestAllocateHeapAtError.java +++ b/test/hotspot/jtreg/gc/TestAllocateHeapAtError.java @@ -42,7 +42,7 @@ import java.util.UUID; public class TestAllocateHeapAtError { public static void main(String args[]) throws Exception { - ArrayList vmOpts = new ArrayList(); + ArrayList vmOpts = new ArrayList<>(); String testVmOptsStr = System.getProperty("test.java.opts"); if (!testVmOptsStr.isEmpty()) {