Skip to content

Commit

Permalink
self-review, cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
niloc132 committed May 15, 2024
1 parent 47f68fb commit 5e4b8c1
Showing 1 changed file with 0 additions and 20 deletions.
20 changes: 0 additions & 20 deletions src/main/java/java/nio/ShortBuffer.java
Original file line number Diff line number Diff line change
Expand Up @@ -217,26 +217,6 @@ public short get (int index) {
return (short)(double)shortArray.getAt(index);
}

/** Indicates whether this buffer is based on a short array and is read/write.
*
* @return {@code true} if this buffer is based on a short array and provides read/write
* access, {@code false} otherwise.
*/
@Override
public final boolean hasArray () {
return false;
}

@Override
public final int arrayOffset() {
throw new UnsupportedOperationException("arrayOffset");
}

@Override
public final short[] array() {
throw new UnsupportedOperationException("array");
}

/** Calculates this buffer's hash code from the remaining chars. The position, limit, capacity
* and mark don't affect the hash code.
*
Expand Down

0 comments on commit 5e4b8c1

Please sign in to comment.