Skip to content

Commit 06630f4

Browse files
committed
Make members private, they are only needed in this test case
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1512614 13f79535-47bb-0310-9956-ffa450edef68
1 parent 9631efe commit 06630f4

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

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

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,9 @@
4242
*/
4343
public class CSVPrinterTest {
4444

45-
public static String printable(final String s) {
45+
private final String recordSeparator = CSVFormat.DEFAULT.getRecordSeparator();
46+
47+
private static String printable(final String s) {
4648
final StringBuilder sb = new StringBuilder();
4749
for (int i = 0; i < s.length(); i++) {
4850
final char ch = s.charAt(i);
@@ -55,9 +57,7 @@ public static String printable(final String s) {
5557
return sb.toString();
5658
}
5759

58-
String recordSeparator = CSVFormat.DEFAULT.getRecordSeparator();
59-
60-
public void doOneRandom(final CSVFormat format) throws Exception {
60+
private void doOneRandom(final CSVFormat format) throws Exception {
6161
final Random r = new Random();
6262

6363
final int nLines = r.nextInt(4) + 1;
@@ -91,13 +91,13 @@ public void doOneRandom(final CSVFormat format) throws Exception {
9191
Utils.compare("Printer output :" + printable(result), lines, parseResult);
9292
}
9393

94-
public void doRandom(final CSVFormat format, final int iter) throws Exception {
94+
private void doRandom(final CSVFormat format, final int iter) throws Exception {
9595
for (int i = 0; i < iter; i++) {
9696
doOneRandom(format);
9797
}
9898
}
9999

100-
public String randStr() {
100+
private String randStr() {
101101
final Random r = new Random();
102102

103103
final int sz = r.nextInt(20);

0 commit comments

Comments
 (0)