Skip to content

Commit 074e640

Browse files
committed
MINOR: Update google-java-format and test Java 25 in CI
1 parent 4b594b6 commit 074e640

5 files changed

Lines changed: 13 additions & 15 deletions

File tree

‎.github/workflows/test.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ jobs:
4545
strategy:
4646
fail-fast: false
4747
matrix:
48-
jdk: [17, 21, 23]
48+
jdk: [17, 21, 25]
4949
maven: [3.9.9]
5050
image: [ubuntu, conda-jni-cdata]
5151
include:

‎adapter/avro/src/main/java/org/apache/arrow/adapter/avro/ArrowToAvroUtils.java‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -601,7 +601,7 @@ private static BaseAvroProducer<?> createProducer(
601601
case VARCHAR:
602602
return new AvroStringProducer((VarCharVector) vector);
603603

604-
// Logical types
604+
// Logical types
605605

606606
case DECIMAL:
607607
return new AvroDecimalProducer((DecimalVector) vector);
@@ -636,7 +636,7 @@ private static BaseAvroProducer<?> createProducer(
636636
case TIMESTAMPNANOTZ:
637637
return new AvroTimestampNanoTzProducer((TimeStampNanoTZVector) vector);
638638

639-
// Complex types
639+
// Complex types
640640

641641
case STRUCT:
642642
StructVector structVector = (StructVector) vector;
@@ -679,9 +679,9 @@ private static BaseAvroProducer<?> createProducer(
679679
new AvroStructProducer(entryVector, new Producer<?>[] {keyProducer, valueProducer});
680680
return new AvroMapProducer(mapVector, entryProducer);
681681

682-
// Support for UNION and DENSEUNION is not currently available
683-
// This is pending fixes in the implementation of the union vectors themselves
684-
// https://github.com/apache/arrow-java/issues/108
682+
// Support for UNION and DENSEUNION is not currently available
683+
// This is pending fixes in the implementation of the union vectors themselves
684+
// https://github.com/apache/arrow-java/issues/108
685685

686686
default:
687687
// Not all Arrow types are supported for encoding (yet)!

‎pom.xml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -738,7 +738,7 @@ under the License.
738738
</pom>
739739
<java>
740740
<googleJavaFormat>
741-
<version>1.17.0</version>
741+
<version>1.36.1</version>
742742
<style>GOOGLE</style>
743743
</googleJavaFormat>
744744
<licenseHeader>

‎vector/src/main/java/org/apache/arrow/vector/ValueVector.java‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,10 +53,8 @@
5353
* <p>This interface "should" strive to guarantee this order of operation:
5454
*
5555
* <blockquote>
56-
*
5756
* allocate &gt; mutate &gt; setvaluecount &gt; access &gt; clear (or allocate to start the process
5857
* over).
59-
*
6058
* </blockquote>
6159
*/
6260
public interface ValueVector extends Closeable, Iterable<ValueVector> {

‎vector/src/main/java/org/apache/arrow/vector/util/Text.java‎

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -488,7 +488,7 @@ private static Optional<Integer> validateUTF8Internal(byte[] utf8, int start, in
488488
if (leadByte == 0xED && aByte > 0x9F) {
489489
return Optional.of(count);
490490
}
491-
// falls through to regular trail-byte test!!
491+
// falls through to regular trail-byte test!!
492492
case TRAIL_BYTE:
493493
if (aByte < 0x80 || aByte > 0xBF) {
494494
return Optional.of(count);
@@ -793,23 +793,23 @@ public static int bytesToCodePoint(ByteBuffer bytes) {
793793
case 5:
794794
ch += (bytes.get() & 0xFF);
795795
ch <<= 6; /* remember, illegal UTF-8 */
796-
// fall through
796+
// fall through
797797
case 4:
798798
ch += (bytes.get() & 0xFF);
799799
ch <<= 6; /* remember, illegal UTF-8 */
800-
// fall through
800+
// fall through
801801
case 3:
802802
ch += (bytes.get() & 0xFF);
803803
ch <<= 6;
804-
// fall through
804+
// fall through
805805
case 2:
806806
ch += (bytes.get() & 0xFF);
807807
ch <<= 6;
808-
// fall through
808+
// fall through
809809
case 1:
810810
ch += (bytes.get() & 0xFF);
811811
ch <<= 6;
812-
// fall through
812+
// fall through
813813
case 0:
814814
ch += (bytes.get() & 0xFF);
815815
break;

0 commit comments

Comments
 (0)