Skip to content

Commit 6afa33c

Browse files
committed
Add Checstyle MultipleVariableDeclarations
1 parent 114118c commit 6afa33c

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

src/conf/checkstyle/checkstyle.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ limitations under the License.
6565
<module name="LocalFinalVariableName" />
6666
<module name="MissingOverride" />
6767
<module name="ModifierOrder" />
68+
<module name="MultipleVariableDeclarations" />
6869
<module name="NeedBraces" />
6970
<module name="OperatorWrap">
7071
<property name="option" value="eol" />

src/test/java/org/apache/commons/csv/CSVRecordTest.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,8 @@ public String toString() {
6868
}
6969

7070
private Map<String, Integer> headerMap;
71-
private CSVRecord record, recordWithHeader;
71+
private CSVRecord record;
72+
private CSVRecord recordWithHeader;
7273
private String[] values;
7374

7475
@BeforeEach

src/test/java/org/apache/commons/csv/ExtendedBufferedReaderTest.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,8 @@ public void testReadChar() throws Exception {
9595

9696
@Test
9797
public void testReadingInDifferentBuffer() throws Exception {
98-
final char[] tmp1 = new char[2], tmp2 = new char[4];
98+
final char[] tmp1 = new char[2];
99+
final char[] tmp2 = new char[4];
99100
try (ExtendedBufferedReader reader = createBufferedReader("1\r\n2\r\n")) {
100101
reader.read(tmp1, 0, 2);
101102
reader.read(tmp2, 2, 2);

0 commit comments

Comments
 (0)