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