(Object other)
| 19 | } |
| 20 | |
| 21 | @Override |
| 22 | public boolean equals(Object other) { |
| 23 | try { |
| 24 | if (this == other) |
| 25 | return true; |
| 26 | if (null == other) |
| 27 | return false; |
| 28 | if (!getClass().isInstance(other)) |
| 29 | return false; |
| 30 | Native nOther = (Native) other; |
| 31 | if (_ptr == nOther._ptr) |
| 32 | return true; |
| 33 | return _nativeEquals(nOther); |
| 34 | } finally { |
| 35 | ReferenceUtil.reachabilityFence(this); |
| 36 | ReferenceUtil.reachabilityFence(other); |
| 37 | } |
| 38 | } |
| 39 | |
| 40 | @ApiStatus.Internal |
| 41 | public boolean _nativeEquals(Native other) { |