This is an automated email from the ASF dual-hosted git repository.
dongjoon pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/orc.git
The following commit(s) were added to refs/heads/main by this push:
new c744548af ORC-1603: Bump `checkstyle` to 10.13.0
c744548af is described below
commit c744548af12bea3467aac8751d7fa67ede7915a5
Author: sychen <[email protected]>
AuthorDate: Tue Jan 30 08:46:23 2024 -0800
ORC-1603: Bump `checkstyle` to 10.13.0
### What changes were proposed in this pull request?
This PR aims to unpin and upgrade `checkstyle` to 10.13.0.
### Why are the changes needed?
Checkstyle 10.13.0 -
https://checkstyle.org/releasenotes.html#Release_10.13.0
Checkstyle 10.12.7 -
https://checkstyle.org/releasenotes.html#Release_10.12.7
```
[INFO] There is 1 error reported by Checkstyle 10.13.0 with checkstyle.xml
ruleset.
Error: src/java/org/apache/orc/impl/RunLengthIntegerReaderV2.java:[54,5]
(indentation) Indentation: 'RunLengthIntegerWriterV2' has incorrect indentation
level 4, expected level should be 6.
```
### How was this patch tested?
GA
### Was this patch authored or co-authored using generative AI tooling?
No
Closes #1775 from cxzl25/ORC-1603.
Authored-by: sychen <[email protected]>
Signed-off-by: Dongjoon Hyun <[email protected]>
---
.../java/org/apache/orc/bench/core/filter/FilterBenchUtil.java | 8 ++++----
.../src/java/org/apache/orc/impl/RunLengthIntegerReaderV2.java | 2 +-
java/pom.xml | 2 +-
3 files changed, 6 insertions(+), 6 deletions(-)
diff --git
a/java/bench/core/src/java/org/apache/orc/bench/core/filter/FilterBenchUtil.java
b/java/bench/core/src/java/org/apache/orc/bench/core/filter/FilterBenchUtil.java
index 823c247b8..ee9b85f7c 100644
---
a/java/bench/core/src/java/org/apache/orc/bench/core/filter/FilterBenchUtil.java
+++
b/java/bench/core/src/java/org/apache/orc/bench/core/filter/FilterBenchUtil.java
@@ -77,8 +77,8 @@ class FilterBenchUtil {
.end()
.build();
int[] s = sel.stream()
- .mapToInt(Integer::intValue)
- .toArray();
+ .mapToInt(Integer::intValue)
+ .toArray();
Arrays.sort(s);
return new AbstractMap.SimpleImmutableEntry<>(sArg, s);
}
@@ -115,8 +115,8 @@ class FilterBenchUtil {
builder.end();
int[] s = sel.stream()
- .mapToInt(Integer::intValue)
- .toArray();
+ .mapToInt(Integer::intValue)
+ .toArray();
Arrays.sort(s);
return new AbstractMap.SimpleImmutableEntry<>(builder.build(), s);
}
diff --git
a/java/core/src/java/org/apache/orc/impl/RunLengthIntegerReaderV2.java
b/java/core/src/java/org/apache/orc/impl/RunLengthIntegerReaderV2.java
index 9f5faff6a..e947bfb4d 100644
--- a/java/core/src/java/org/apache/orc/impl/RunLengthIntegerReaderV2.java
+++ b/java/core/src/java/org/apache/orc/impl/RunLengthIntegerReaderV2.java
@@ -51,7 +51,7 @@ public class RunLengthIntegerReaderV2 implements
IntegerReader {
}
private static final RunLengthIntegerWriterV2.EncodingType[] encodings =
- RunLengthIntegerWriterV2.EncodingType.values();
+ RunLengthIntegerWriterV2.EncodingType.values();
private void readValues(boolean ignoreEof) throws IOException {
// read the first 2 bits and determine the encoding type
int firstByte = input.read();
diff --git a/java/pom.xml b/java/pom.xml
index 44c053117..a1075816e 100644
--- a/java/pom.xml
+++ b/java/pom.xml
@@ -61,7 +61,7 @@
<properties>
<brotli4j.version>1.15.0</brotli4j.version>
- <checkstyle.version>10.12.0</checkstyle.version>
+ <checkstyle.version>10.13.0</checkstyle.version>
<example.dir>${project.basedir}/../../examples</example.dir>
<hadoop.version>3.3.6</hadoop.version>
<java.version>17</java.version>