< prev index next >

src/java.base/share/classes/java/lang/invoke/X-VarHandleByteArrayView.java.template

Print this page
rev 53074 : 8215648: remove equals and hashCode implementations from j.l.i.VarHandle

*** 65,85 **** ByteArrayViewVarHandle(VarForm form, boolean be) { super(form); this.be = be; } - - @Override - final boolean internalEquals(VarHandle vh) { - ByteArrayViewVarHandle that = (ByteArrayViewVarHandle) vh; - return be == that.be; - } - - @Override - final int internalHashCode() { - return Boolean.hashCode(be); - } } static final class ArrayHandle extends ByteArrayViewVarHandle { ArrayHandle(boolean be) { --- 65,74 ----
< prev index next >