Skip to content

Commit

Permalink
Add Checstyle ParenPad
Browse files Browse the repository at this point in the history
  • Loading branch information
garydgregory committed Jan 8, 2025
1 parent ce84426 commit 5c53b34
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/conf/checkstyle/checkstyle.xml
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ limitations under the License.
<module name="OperatorWrap">
<property name="option" value="eol" />
</module>
<module name="ParenPad" />
<module name="RedundantImport" />
<module name="RedundantModifier" />
<module name="RightCurly" />
Expand Down
2 changes: 1 addition & 1 deletion src/test/java/org/apache/commons/csv/CSVParserTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -897,7 +897,7 @@ public void testGetRecordThreeBytesRead() throws Exception {
.setDelimiter(',')
.setQuote('\'')
.get();
try (CSVParser parser = CSVParser.builder().setReader(new StringReader(code)).setFormat(format).setCharset(UTF_8).setTrackBytes(true).get() ) {
try (CSVParser parser = CSVParser.builder().setReader(new StringReader(code)).setFormat(format).setCharset(UTF_8).setTrackBytes(true).get()) {
CSVRecord record = new CSVRecord(parser, null, null, 1L, 0L, 0L);

assertEquals(0, parser.getRecordNumber());
Expand Down

0 comments on commit 5c53b34

Please sign in to comment.