Skip to content

Commit c20b570

Browse files
committed
style fixes
1 parent 2ab1aa2 commit c20b570

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -483,8 +483,8 @@ protected boolean isPointer(
483483

484484
@ExportMessage
485485
public long asPointer(
486-
@CachedLibrary("this") PythonNativeWrapperLibrary lib,
487-
@CachedLibrary(limit = "1") InteropLibrary interopLibrary) throws UnsupportedMessageException {
486+
@CachedLibrary("this") PythonNativeWrapperLibrary lib,
487+
@CachedLibrary(limit = "1") InteropLibrary interopLibrary) throws UnsupportedMessageException {
488488
Object nativePointer = lib.getNativePointer(this);
489489
if (nativePointer instanceof Long) {
490490
return (long) nativePointer;

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

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,6 @@
4343
import com.oracle.graal.python.builtins.objects.cext.CArrayWrappers.CStringWrapper;
4444
import com.oracle.graal.python.builtins.objects.type.PythonClass;
4545
import com.oracle.graal.python.builtins.objects.type.PythonManagedClass;
46-
import com.oracle.truffle.api.CompilerAsserts;
4746
import com.oracle.truffle.api.CompilerDirectives.TruffleBoundary;
4847

4948
/**
@@ -93,7 +92,6 @@ public static PythonClassNativeWrapper wrap(PythonManagedClass obj, String name)
9392
@Override
9493
@TruffleBoundary
9594
public String toString() {
96-
CompilerAsserts.neverPartOfCompilation();
9795
PythonNativeWrapperLibrary lib = PythonNativeWrapperLibrary.getUncached();
9896
return String.format("PythonClassNativeWrapper(%s, isNative=%s)", lib.getDelegate(this), lib.isNative(this));
9997
}

0 commit comments

Comments
 (0)