< prev index next >

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

Print this page

        

@@ -89,26 +89,10 @@
         }
         return underlying.getIntOptimistic(index, programPoint);
     }
 
     @Override
-    public long getLong(final int index) {
-        if (index >= length()) {
-            return JSType.toLong(get(index));
-        }
-        return underlying.getLong(index);
-    }
-
-    @Override
-    public long getLongOptimistic(final int index, final int programPoint) {
-        if (index >= length()) {
-            return JSType.toLongOptimistic(get(index), programPoint);
-        }
-        return underlying.getLongOptimistic(index, programPoint);
-    }
-
-    @Override
     public double getDouble(final int index) {
         if (index >= length()) {
             return JSType.toNumber(get(index));
         }
         return underlying.getDouble(index);

@@ -144,19 +128,10 @@
         if (checkAdd(index, value)) {
             return this;
         }
         underlying = underlying.set(index, value, strict);
         return this;
-    }
-
-    @Override
-    public ArrayData set(final int index, final long value, final boolean strict) {
-        if (checkAdd(index, value)) {
-            return this;
-        }
-        underlying = underlying.set(index, value, strict);
-        return this;
     }
 
     @Override
     public ArrayData set(final int index, final double value, final boolean strict) {
         if (checkAdd(index, value)) {
< prev index next >