[platform] Use Long.hashCode()

GitOrigin-RevId: cef08bb06871c59831cfa2a21e09f0ca8540075d
This commit is contained in:
Tagir Valeev
2024-07-29 15:17:56 +02:00
committed by intellij-monorepo-bot
parent 275fab34ed
commit 3170f40fa6
2 changed files with 3 additions and 4 deletions

View File

@@ -62,7 +62,6 @@ public abstract class AbstractDependencyNode implements DependencyNode, Serializ
@Override
public int hashCode() {
int result = (int)(id ^ (id >>> 32));
return result;
return Long.hashCode(id);
}
}

View File

@@ -12,7 +12,7 @@ import java.util.List;
public class ReferenceNode implements DependencyNode, Serializable {
private final long id;
@PropertyMapping({"id"})
@PropertyMapping("id")
public ReferenceNode(long id) {this.id = id;}
@Override
@@ -55,6 +55,6 @@ public class ReferenceNode implements DependencyNode, Serializable {
@Override
public int hashCode() {
return (int)(id ^ (id >>> 32));
return Long.hashCode(id);
}
}