changeset 6487:5585357e2de0

8020625: [TESTBUG] java/util/HashMap/OverrideIsEmpty.java doesn't compile for jdk7u Reviewed-by: chegar, mduigou
author zhangshj
date Thu, 18 Jul 2013 11:05:31 +0100
parents 66a28466b569
children 672f73d4c62a
files test/java/util/HashMap/OverrideIsEmpty.java
diffstat 1 files changed, 0 insertions(+), 8 deletions(-) [+]
line wrap: on
line diff
--- a/test/java/util/HashMap/OverrideIsEmpty.java	Fri Jul 05 10:51:54 2013 +0800
+++ b/test/java/util/HashMap/OverrideIsEmpty.java	Thu Jul 18 11:05:31 2013 +0100
@@ -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 @@
         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;
-            }
-        });
     }
 }