Skip to content

Commit

Permalink
Add Checstyle MultipleVariableDeclarations
Browse files Browse the repository at this point in the history
  • Loading branch information
garydgregory committed Jan 8, 2025
1 parent 114118c commit 6afa33c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/conf/checkstyle/checkstyle.xml
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ limitations under the License.
<module name="LocalFinalVariableName" />
<module name="MissingOverride" />
<module name="ModifierOrder" />
<module name="MultipleVariableDeclarations" />
<module name="NeedBraces" />
<module name="OperatorWrap">
<property name="option" value="eol" />
Expand Down
3 changes: 2 additions & 1 deletion src/test/java/org/apache/commons/csv/CSVRecordTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,8 @@ public String toString() {
}

private Map<String, Integer> headerMap;
private CSVRecord record, recordWithHeader;
private CSVRecord record;
private CSVRecord recordWithHeader;
private String[] values;

@BeforeEach
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,8 @@ public void testReadChar() throws Exception {

@Test
public void testReadingInDifferentBuffer() throws Exception {
final char[] tmp1 = new char[2], tmp2 = new char[4];
final char[] tmp1 = new char[2];
final char[] tmp2 = new char[4];
try (ExtendedBufferedReader reader = createBufferedReader("1\r\n2\r\n")) {
reader.read(tmp1, 0, 2);
reader.read(tmp2, 2, 2);
Expand Down

0 comments on commit 6afa33c

Please sign in to comment.