diff --git a/test/hotspot/jtreg/gc/nvdimm/TestAllocateOldGenAtMultiple.java b/test/hotspot/jtreg/gc/nvdimm/TestAllocateOldGenAtMultiple.java index ff8c3a7fa3a..3da53740de7 100644 --- a/test/hotspot/jtreg/gc/nvdimm/TestAllocateOldGenAtMultiple.java +++ b/test/hotspot/jtreg/gc/nvdimm/TestAllocateOldGenAtMultiple.java @@ -41,7 +41,7 @@ import java.util.Collections; public class TestAllocateOldGenAtMultiple { public static void main(String args[]) throws Exception { - ArrayList vmOpts = new ArrayList(); + ArrayList vmOpts = new ArrayList<>(); String[] testVmOpts = null; String test_dir = System.getProperty("test.dir", ".");