mirror of
https://github.com/openjdk/jdk7u.git
synced 2025-12-15 14:45:34 -06:00
8020625: [TESTBUG] java/util/HashMap/OverrideIsEmpty.java doesn't compile for jdk7u
Reviewed-by: chegar, mduigou
This commit is contained in:
parent
353bdaf843
commit
0b7aa23f89
@ -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;
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user