mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-08 15:09:39 +07:00
[platform] Use Long.hashCode()
GitOrigin-RevId: cef08bb06871c59831cfa2a21e09f0ca8540075d
This commit is contained in:
committed by
intellij-monorepo-bot
parent
275fab34ed
commit
3170f40fa6
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user