8020625: [TESTBUG] java/util/HashMap/OverrideIsEmpty.java doesn't compile for jdk7u

Reviewed-by: chegar, mduigou
This commit is contained in:
Shi Jun Zhang 2013-07-18 11:05:31 +01:00
parent 353bdaf843
commit 0b7aa23f89

View File

@ -33,7 +33,6 @@
* @author zhangshj@linux.vnet.ibm.com
*/
import java.util.function.BiFunction;
import java.util.HashMap;
public class OverrideIsEmpty {
@ -66,13 +65,6 @@ public class OverrideIsEmpty {
Object value = new Object();
map.get(key);
map.remove(key);
map.replace(key, value, null);
map.replace(key, value);
map.computeIfPresent(key, new BiFunction<Object, Object, Object>() {
public Object apply(Object key, Object oldValue) {
return oldValue;
}
});
}
}