@@ -51,7 +51,7 @@ public void testException() throws IOException {
5151 final List <Object > batches = new ArrayList <>();
5252
5353 try (BufferAllocator allocator = new RootAllocator ();
54- VectorSchemaRoot root = VectorSchemaRoot .create (schema , allocator )) {
54+ VectorSchemaRoot root = VectorSchemaRoot .create (schema , allocator )) {
5555
5656 final String exceptionMessage = "This is a message for testing exception." ;
5757
@@ -66,7 +66,7 @@ public void testException() throws IOException {
6666 ArrowReader source = new ExceptionMemoryArrowReader (allocator , schema , batches );
6767
6868 try (final ArrowArrayStream stream = ArrowArrayStream .allocateNew (allocator );
69- final VectorSchemaRoot importRoot = VectorSchemaRoot .create (schema , allocator )) {
69+ final VectorSchemaRoot importRoot = VectorSchemaRoot .create (schema , allocator )) {
7070 final VectorLoader loader = new VectorLoader (importRoot );
7171 Data .exportArrayStream (allocator , source , stream );
7272
@@ -85,10 +85,7 @@ static class ExceptionMemoryArrowReader extends ArrowReader {
8585 private final DictionaryProvider provider ;
8686 private int nextBatch ;
8787
88- ExceptionMemoryArrowReader (
89- BufferAllocator allocator ,
90- Schema schema ,
91- List <Object > batches ) {
88+ ExceptionMemoryArrowReader (BufferAllocator allocator , Schema schema , List <Object > batches ) {
9289 super (allocator );
9390 this .schema = schema ;
9491 this .batches = batches ;
0 commit comments