From 06630f4b4b13c30c1cd97f685d0cdd24b47aef48 Mon Sep 17 00:00:00 2001 From: Benedikt Ritter Date: Sat, 10 Aug 2013 10:39:48 +0000 Subject: [PATCH] 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 --- .../java/org/apache/commons/csv/CSVPrinterTest.java | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/test/java/org/apache/commons/csv/CSVPrinterTest.java b/src/test/java/org/apache/commons/csv/CSVPrinterTest.java index e21e40ac..ebf0da4b 100644 --- a/src/test/java/org/apache/commons/csv/CSVPrinterTest.java +++ b/src/test/java/org/apache/commons/csv/CSVPrinterTest.java @@ -42,7 +42,9 @@ import org.junit.Test; */ public class CSVPrinterTest { - public static String printable(final String s) { + private final String recordSeparator = CSVFormat.DEFAULT.getRecordSeparator(); + + private static String printable(final String s) { final StringBuilder sb = new StringBuilder(); for (int i = 0; i < s.length(); i++) { final char ch = s.charAt(i); @@ -55,9 +57,7 @@ public class CSVPrinterTest { return sb.toString(); } - String recordSeparator = CSVFormat.DEFAULT.getRecordSeparator(); - - public void doOneRandom(final CSVFormat format) throws Exception { + private void doOneRandom(final CSVFormat format) throws Exception { final Random r = new Random(); final int nLines = r.nextInt(4) + 1; @@ -91,13 +91,13 @@ public class CSVPrinterTest { Utils.compare("Printer output :" + printable(result), lines, parseResult); } - public void doRandom(final CSVFormat format, final int iter) throws Exception { + private void doRandom(final CSVFormat format, final int iter) throws Exception { for (int i = 0; i < iter; i++) { doOneRandom(format); } } - public String randStr() { + private String randStr() { final Random r = new Random(); final int sz = r.nextInt(20);