4242 */
4343public 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