< prev index next >

src/jdk.internal.vm.compiler/share/classes/jdk.internal.vm.compiler.collections.test/src/jdk/internal/vm/compiler/collections/test/EconomicMapImplTest.java

Print this page
rev 52509 : [mq]: graal2

*** 1,7 **** /* ! * Copyright (c) 2017, 2017, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. --- 1,7 ---- /* ! * Copyright (c) 2017, 2018, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation.
*** 20,29 **** --- 20,45 ---- * or visit www.oracle.com if you need additional information or have any * questions. */ + + + + + + + + + + + + + + + + package jdk.internal.vm.compiler.collections.test; import java.util.Arrays; import java.util.Iterator;
*** 115,125 **** }); set.addAll(Arrays.asList(0, 1, 2, 3, 4, 5, 6, 7, 8, 9)); Assert.assertTrue(set.add(newInteger(0))); } ! @SuppressWarnings("deprecation") private static Integer newInteger(int value) { return new Integer(value); } @Test(expected = UnsupportedOperationException.class) --- 131,141 ---- }); set.addAll(Arrays.asList(0, 1, 2, 3, 4, 5, 6, 7, 8, 9)); Assert.assertTrue(set.add(newInteger(0))); } ! @SuppressWarnings({"deprecation", "unused"}) private static Integer newInteger(int value) { return new Integer(value); } @Test(expected = UnsupportedOperationException.class)
< prev index next >