Skip to content

Commit 0ee3487

Browse files
committed
resolve library warning
1 parent 974ef02 commit 0ee3487

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

graalpython/com.oracle.graal.python/src/com/oracle/graal/python/builtins/objects/PythonAbstractObject.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2032,12 +2032,12 @@ public int identityHashCode(
20322032
return Long.hashCode(objectLib.hash(this));
20332033
} else {
20342034
// everything in Python has an identity, but not everything provides a __hash__ method
2035-
return identityHashCode(this);
2035+
return systemHashCode(this);
20362036
}
20372037
}
20382038

20392039
@TruffleBoundary
2040-
public static int identityHashCode(Object obj) {
2040+
public static int systemHashCode(Object obj) {
20412041
return System.identityHashCode(obj);
20422042
}
20432043

graalpython/com.oracle.graal.python/src/com/oracle/graal/python/builtins/objects/object/ObjectBuiltins.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -304,9 +304,9 @@ String repr(VirtualFrame frame, Object self,
304304
Object moduleName = readModuleNode.executeObject(frame, type);
305305
Object qualName = readQualNameNode.executeObject(frame, type);
306306
if (moduleName != PNone.NO_VALUE && !BuiltinNames.BUILTINS.equals(moduleName)) {
307-
return strFormat("<%s.%s object at 0x%x>", moduleName, qualName, PythonAbstractObject.identityHashCode(self));
307+
return strFormat("<%s.%s object at 0x%x>", moduleName, qualName, PythonAbstractObject.systemHashCode(self));
308308
}
309-
return strFormat("<%s object at 0x%x>", qualName, PythonAbstractObject.identityHashCode(self));
309+
return strFormat("<%s object at 0x%x>", qualName, PythonAbstractObject.systemHashCode(self));
310310
}
311311

312312
@TruffleBoundary

0 commit comments

Comments
 (0)