< prev index next >

src/jdk/nashorn/internal/runtime/arrays/DeletedRangeArrayFilter.java

Print this page

        

@@ -161,28 +161,10 @@
 
         return isEmpty() ? getUnderlying().set(index, value, strict) : super.set(index, value, strict);
     }
 
     @Override
-    public ArrayData set(final int index, final long value, final boolean strict) {
-        final long longIndex = ArrayIndex.toLongIndex(index);
-        if (longIndex < lo || longIndex > hi) {
-            return super.set(index, value, strict);
-        } else if (longIndex > lo && longIndex < hi) {
-            return getDeletedArrayFilter().set(index, value, strict);
-        }
-        if (longIndex == lo) {
-            lo++;
-        } else {
-            assert longIndex == hi;
-            hi--;
-        }
-
-        return isEmpty() ? getUnderlying().set(index, value, strict) : super.set(index, value, strict);
-    }
-
-    @Override
     public ArrayData set(final int index, final double value, final boolean strict) {
         final long longIndex = ArrayIndex.toLongIndex(index);
         if (longIndex < lo || longIndex > hi) {
             return super.set(index, value, strict);
         } else if (longIndex > lo && longIndex < hi) {
< prev index next >