Skip to content

Commit

Permalink
rmi: Fix ErrorProne code nit
Browse files Browse the repository at this point in the history
Use System.identityHashCode instead of Object.hashCode
  • Loading branch information
kohlschuetter committed Feb 24, 2024
1 parent 6e571c1 commit 0d8ca6a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ public void writeExternal(ObjectOutput out) throws IOException {

@Override
public int hashCode() {
return socketDir == null ? super.hashCode() : socketDir.hashCode();
return socketDir == null ? System.identityHashCode(this) : socketDir.hashCode();
}

@Override
Expand Down

0 comments on commit 0d8ca6a

Please sign in to comment.