2121import static org .junit .jupiter .api .Assertions .assertNull ;
2222import static org .junit .jupiter .api .Assertions .assertThrows ;
2323
24-
2524import java .math .BigDecimal ;
2625import java .nio .ByteBuffer ;
2726import java .nio .ByteOrder ;
@@ -739,10 +738,12 @@ public void testPromoteLargeVarBinaryHelpersDirect() throws Exception {
739738
740739 @ Test
741740 public void testPromoteToUnionFromDecimal () throws Exception {
742- try (final NonNullableStructVector container = NonNullableStructVector .empty (EMPTY_SCHEMA_PATH , allocator );
743- final DecimalVector v = container .addOrGet ("dec" ,
744- FieldType .nullable (new ArrowType .Decimal (38 , 1 , 128 )), DecimalVector .class );
745- final PromotableWriter writer = new PromotableWriter (v , container )) {
741+ try (final NonNullableStructVector container =
742+ NonNullableStructVector .empty (EMPTY_SCHEMA_PATH , allocator );
743+ final DecimalVector v =
744+ container .addOrGet (
745+ "dec" , FieldType .nullable (new ArrowType .Decimal (38 , 1 , 128 )), DecimalVector .class );
746+ final PromotableWriter writer = new PromotableWriter (v , container )) {
746747
747748 container .allocateNew ();
748749 container .setValueCount (1 );
@@ -762,8 +763,10 @@ public void testPromoteToUnionFromDecimal() throws Exception {
762763 holder .reader .read (decimalHolder );
763764
764765 assertEquals (1 , decimalHolder .isSet );
765- assertEquals (new BigDecimal ("0.1" ),
766- DecimalUtility .getBigDecimalFromArrowBuf (decimalHolder .buffer , 0 , decimalHolder .scale , 128 ));
766+ assertEquals (
767+ new BigDecimal ("0.1" ),
768+ DecimalUtility .getBigDecimalFromArrowBuf (
769+ decimalHolder .buffer , 0 , decimalHolder .scale , 128 ));
767770
768771 unionVector .get (1 , holder );
769772 NullableIntHolder intHolder = new NullableIntHolder ();
0 commit comments