Skip to content

Commit 0f83fa8

Browse files
committed
Fix style issue
1 parent 67b9c02 commit 0f83fa8

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

graalpython/com.oracle.graal.python/src/com/oracle/graal/python/nodes/arrow/vector/VectorToArrowArrayNode.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@
4242

4343
import com.oracle.graal.python.nodes.PNodeWithContext;
4444
import com.oracle.graal.python.nodes.arrow.ArrowArray;
45-
import com.oracle.graal.python.runtime.arrow.ArrowVectorSupport;
4645
import com.oracle.graal.python.runtime.PythonContext;
4746
import com.oracle.truffle.api.CompilerDirectives;
4847
import com.oracle.truffle.api.dsl.Bind;
@@ -73,7 +72,8 @@ static ArrowArray doIntVector(Node inliningTarget, Object vector,
7372
snapshot.null_count = (Integer) interopLib.invokeMember(vector, "getNullCount");
7473
snapshot.n_buffers = (Integer) interopLib.invokeMember(vector, "getExportedCDataBufferCount");
7574
if (snapshot.n_buffers != 2) {
76-
throw CompilerDirectives.shouldNotReachHere("We expect that Vector implementation to has just 2 buffers, those are validity buffer and value buffer. This should never happen unless arrow changes internally");
75+
throw CompilerDirectives.shouldNotReachHere(
76+
"We expect that Vector implementation to has just 2 buffers, those are validity buffer and value buffer. This should never happen unless arrow changes internally");
7777
}
7878
snapshot.buffers = unsafe.allocateMemory(2 * POINTER_SIZE);
7979
long validityPointer = (long) interopLib.invokeMember(vector, "getValidityBufferAddress");

graalpython/com.oracle.graal.python/src/com/oracle/graal/python/runtime/arrow/ArrowSupport.java

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,19 +43,15 @@
4343
import com.oracle.graal.python.nodes.arrow.capsule.ArrowArrayCapsuleDestructor;
4444
import com.oracle.graal.python.nodes.arrow.capsule.ArrowSchemaCapsuleDestructor;
4545
import com.oracle.graal.python.nodes.arrow.release_callback.ArrowSchemaReleaseCallback;
46-
import com.oracle.graal.python.nodes.arrow.vector.VectorArrowArrayReleaseCallback;
4746
import com.oracle.graal.python.runtime.PythonContext;
4847
import com.oracle.graal.python.util.PythonUtils;
4948
import com.oracle.truffle.api.CompilerAsserts;
5049
import com.oracle.truffle.api.CompilerDirectives;
5150
import com.oracle.truffle.api.CompilerDirectives.CompilationFinal;
5251
import com.oracle.truffle.api.CompilerDirectives.TruffleBoundary;
5352
import com.oracle.truffle.api.interop.InteropLibrary;
54-
import com.oracle.truffle.api.source.Source;
5553
import com.oracle.truffle.nfi.api.SignatureLibrary;
5654

57-
import static com.oracle.graal.python.nodes.StringLiterals.J_NFI_LANGUAGE;
58-
5955
public class ArrowSupport {
6056

6157
protected final PythonContext ctx;

0 commit comments

Comments
 (0)