MINOR: [Java] Bump com.puppycrawl.tools:checkstyle from 8.29 to 10.17… · gizmodata/arrow-java@900ebcd · GitHub
Skip to content

Commit 900ebcd

Browse files
danepitkinkou
authored andcommitted
MINOR: [Java] Bump com.puppycrawl.tools:checkstyle from 8.29 to 10.17.0 in /java (#43311)
### Rationale for this change Now that Java 8 is deprecated, we can bump checkstyle to latest version. ### What changes are included in this PR? * Bump checkstyle to 10.17.0 * Update checkstyle.xml to fix backwards-breaking changes * Fix new check errors ### Are these changes tested? CI ### Are there any user-facing changes? No Authored-by: Dane Pitkin <dpitkin@apache.org> Signed-off-by: Dane Pitkin <dpitkin@apache.org>
1 parent 3aa1c1a commit 900ebcd

16 files changed

Lines changed: 28 additions & 15 deletions

.gitattributes

Lines changed: 1 addition & 0 deletions

dev/checkstyle/checkstyle.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@
180180
<property name="target" value="CLASS_DEF, INTERFACE_DEF, ENUM_DEF, METHOD_DEF, CTOR_DEF, VARIABLE_DEF"/>
181181
</module>
182182
<module name="JavadocMethod">
183-
<property name="scope" value="public"/>
183+
<property name="accessModifiers" value="public"/>
184184
<property name="allowMissingParamTags" value="true"/>
185185
<property name="allowMissingReturnTag" value="true"/>
186186
<property name="allowedAnnotations" value="Override, Test"/>

flight/flight-sql-jdbc-core/src/main/java/org/apache/arrow/driver/jdbc/utils/VectorSchemaRootTransformer.java

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,12 @@ class Builder {
4444
private final List<Field> newFields = new ArrayList<>();
4545
private final Collection<Task> tasks = new ArrayList<>();
4646

47+
/**
48+
* Constructor for the VectorSchemaRootTransformer's Builder.
49+
*
50+
* @param schema The Arrow schema.
51+
* @param bufferAllocator The BufferAllocator to use for allocating memory.
52+
*/
4753
public Builder(final Schema schema, final BufferAllocator bufferAllocator) {
4854
this.schema = schema;
4955
this.bufferAllocator =
@@ -127,6 +133,11 @@ public Builder addEmptyField(final String fieldName, final ArrowType fieldType)
127133
return this;
128134
}
129135

136+
/**
137+
* Build the {@link VectorSchemaRoot} with applied transformation tasks.
138+
*
139+
* @return The built {@link VectorSchemaRoot}.
140+
*/
130141
public VectorSchemaRootTransformer build() {
131142
return (originalRoot, transformedRoot) -> {
132143
if (transformedRoot == null) {

pom.xml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,7 @@ under the License.
105105
<dep.avro.version>1.11.3</dep.avro.version>
106106
<arrow.vector.classifier></arrow.vector.classifier>
107107
<forkCount>2</forkCount>
108+
<checkstyle.version>10.17.0</checkstyle.version>
108109
<checkstyle.failOnViolation>true</checkstyle.failOnViolation>
109110
<error_prone_core.version>2.29.2</error_prone_core.version>
110111
<mockito.core.version>5.11.0</mockito.core.version>
@@ -719,7 +720,7 @@ under the License.
719720
<dependency>
720721
<groupId>com.puppycrawl.tools</groupId>
721722
<artifactId>checkstyle</artifactId>
722-
<version>8.29</version>
723+
<version>${checkstyle.version}</version>
723724
</dependency>
724725
<dependency>
725726
<groupId>org.slf4j</groupId>

vector/src/main/java/org/apache/arrow/vector/BaseFixedWidthVector.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -453,9 +453,9 @@ public void reAlloc() {
453453
/**
454454
* Get the inner vectors.
455455
*
456+
* @return the inner vectors for this field as defined by the TypeLayout
456457
* @deprecated This API will be removed as the current implementations no longer support inner
457458
* vectors.
458-
* @return the inner vectors for this field as defined by the TypeLayout
459459
*/
460460
@Deprecated
461461
@Override

vector/src/main/java/org/apache/arrow/vector/BaseLargeVariableWidthVector.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -259,9 +259,9 @@ public void clear() {
259259
/**
260260
* Get the inner vectors.
261261
*
262+
* @return the inner vectors for this field as defined by the TypeLayout
262263
* @deprecated This API will be removed as the current implementations no longer support inner
263264
* vectors.
264-
* @return the inner vectors for this field as defined by the TypeLayout
265265
*/
266266
@Override
267267
@Deprecated

vector/src/main/java/org/apache/arrow/vector/BaseVariableWidthVector.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -275,9 +275,9 @@ public void clear() {
275275
/**
276276
* Get the inner vectors.
277277
*
278+
* @return the inner vectors for this field as defined by the TypeLayout
278279
* @deprecated This API will be removed as the current implementations no longer support inner
279280
* vectors.
280-
* @return the inner vectors for this field as defined by the TypeLayout
281281
*/
282282
@Deprecated
283283
@Override

vector/src/main/java/org/apache/arrow/vector/BaseVariableWidthViewVector.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -315,9 +315,9 @@ public void clearDataBuffers() {
315315
/**
316316
* Get the inner vectors.
317317
*
318+
* @return the inner vectors for this field as defined by the TypeLayout
318319
* @deprecated This API will be removed as the current implementations no longer support inner
319320
* vectors.
320-
* @return the inner vectors for this field as defined by the TypeLayout
321321
*/
322322
@Deprecated
323323
@Override

vector/src/main/java/org/apache/arrow/vector/ExtensionTypeVector.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,9 +233,9 @@ public List<ArrowBuf> getFieldBuffers() {
233233
/**
234234
* Get the inner vectors.
235235
*
236+
* @return the inner vectors for this field as defined by the TypeLayout
236237
* @deprecated This API will be removed as the current implementations no longer support inner
237238
* vectors.
238-
* @return the inner vectors for this field as defined by the TypeLayout
239239
*/
240240
@Deprecated
241241
@Override

vector/src/main/java/org/apache/arrow/vector/FieldVector.java

Lines changed: 1 addition & 1 deletion

0 commit comments

Comments
 (0)