Skip to content

Commit c744548

Browse files
cxzl25dongjoon-hyun
authored andcommitted
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]>
1 parent f326f6a commit c744548

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

java/bench/core/src/java/org/apache/orc/bench/core/filter/FilterBenchUtil.java

+4-4
Original file line numberDiff line numberDiff line change
@@ -77,8 +77,8 @@ static Map.Entry<SearchArgument, int[]> createSArg(Random rnd,
7777
.end()
7878
.build();
7979
int[] s = sel.stream()
80-
.mapToInt(Integer::intValue)
81-
.toArray();
80+
.mapToInt(Integer::intValue)
81+
.toArray();
8282
Arrays.sort(s);
8383
return new AbstractMap.SimpleImmutableEntry<>(sArg, s);
8484
}
@@ -115,8 +115,8 @@ static Map.Entry<SearchArgument, int[]> createComplexSArg(Random rnd,
115115
builder.end();
116116

117117
int[] s = sel.stream()
118-
.mapToInt(Integer::intValue)
119-
.toArray();
118+
.mapToInt(Integer::intValue)
119+
.toArray();
120120
Arrays.sort(s);
121121
return new AbstractMap.SimpleImmutableEntry<>(builder.build(), s);
122122
}

java/core/src/java/org/apache/orc/impl/RunLengthIntegerReaderV2.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ public RunLengthIntegerReaderV2(InStream input, boolean signed,
5151
}
5252

5353
private static final RunLengthIntegerWriterV2.EncodingType[] encodings =
54-
RunLengthIntegerWriterV2.EncodingType.values();
54+
RunLengthIntegerWriterV2.EncodingType.values();
5555
private void readValues(boolean ignoreEof) throws IOException {
5656
// read the first 2 bits and determine the encoding type
5757
int firstByte = input.read();

java/pom.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@
6161

6262
<properties>
6363
<brotli4j.version>1.15.0</brotli4j.version>
64-
<checkstyle.version>10.12.0</checkstyle.version>
64+
<checkstyle.version>10.13.0</checkstyle.version>
6565
<example.dir>${project.basedir}/../../examples</example.dir>
6666
<hadoop.version>3.3.6</hadoop.version>
6767
<java.version>17</java.version>

0 commit comments

Comments
 (0)