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