Skip to content

Commit 743dd28

Browse files
committed
Some minor cleanup.
1 parent 501e976 commit 743dd28

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

graalpython/com.oracle.graal.python/src/com/oracle/graal/python/builtins/objects/cext/CExtNodes.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -847,8 +847,6 @@ public abstract static class GetNativeClassNode extends CExtBaseNode {
847847
@Child private PCallCapiFunction callGetObTypeNode;
848848
@Child private AsPythonObjectNode toJavaNode;
849849

850-
@CompilationFinal private TruffleObject func;
851-
852850
public abstract PythonAbstractClass execute(PythonAbstractNativeObject object);
853851

854852
@Specialization(guards = "cachedObject.equals(object)", limit = "1")
@@ -1361,7 +1359,7 @@ public static class PCallCapiFunction extends CExtBaseNode {
13611359
private final String name;
13621360
private final BranchProfile profile = BranchProfile.create();
13631361

1364-
@CompilationFinal TruffleObject receiver;
1362+
@CompilationFinal private TruffleObject receiver;
13651363

13661364
public PCallCapiFunction(String name) {
13671365
this.name = name;

graalpython/com.oracle.graal.python/src/com/oracle/graal/python/builtins/objects/cext/PythonAbstractNativeObject.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,4 +93,10 @@ public boolean equals(Object obj) {
9393
PythonAbstractNativeObject other = (PythonAbstractNativeObject) obj;
9494
return Objects.equals(object, other.object);
9595
}
96+
97+
@Override
98+
public String toString() {
99+
CompilerAsserts.neverPartOfCompilation();
100+
return String.format("PythonAbstractNativeObject(%s)", object);
101+
}
96102
}

0 commit comments

Comments
 (0)