@@ -54,7 +54,7 @@ private static CSVFormat copy(final CSVFormat format) {
5454
5555 @ Test (expected = IllegalArgumentException .class )
5656 public void testDelimiterSameAsCommentStartThrowsException () {
57- CSVFormat .DEFAULT .withDelimiter ('!' ).withCommentStart ('!' );
57+ CSVFormat .DEFAULT .withDelimiter ('!' ).withCommentMarker ('!' );
5858 }
5959
6060 @ Test (expected = IllegalArgumentException .class )
@@ -87,10 +87,10 @@ public void testEquals() {
8787 public void testEqualsCommentStart () {
8888 final CSVFormat right = CSVFormat .newFormat ('\'' )
8989 .withQuoteChar ('"' )
90- .withCommentStart ('#' )
90+ .withCommentMarker ('#' )
9191 .withQuotePolicy (Quote .ALL );
9292 final CSVFormat left = right
93- .withCommentStart ('!' );
93+ .withCommentMarker ('!' );
9494
9595 assertNotEquals (right , left );
9696 }
@@ -107,7 +107,7 @@ public void testEqualsDelimiter() {
107107 public void testEqualsEscape () {
108108 final CSVFormat right = CSVFormat .newFormat ('\'' )
109109 .withQuoteChar ('"' )
110- .withCommentStart ('#' )
110+ .withCommentMarker ('#' )
111111 .withEscape ('+' )
112112 .withQuotePolicy (Quote .ALL );
113113 final CSVFormat left = right
@@ -120,7 +120,7 @@ public void testEqualsEscape() {
120120 public void testEqualsHeader () {
121121 final CSVFormat right = CSVFormat .newFormat ('\'' )
122122 .withRecordSeparator (CR )
123- .withCommentStart ('#' )
123+ .withCommentMarker ('#' )
124124 .withEscape ('+' )
125125 .withHeader ("One" , "Two" , "Three" )
126126 .withIgnoreEmptyLines (true )
@@ -136,7 +136,7 @@ public void testEqualsHeader() {
136136 @ Test
137137 public void testEqualsIgnoreEmptyLines () {
138138 final CSVFormat right = CSVFormat .newFormat ('\'' )
139- .withCommentStart ('#' )
139+ .withCommentMarker ('#' )
140140 .withEscape ('+' )
141141 .withIgnoreEmptyLines (true )
142142 .withIgnoreSurroundingSpaces (true )
@@ -151,7 +151,7 @@ public void testEqualsIgnoreEmptyLines() {
151151 @ Test
152152 public void testEqualsIgnoreSurroundingSpaces () {
153153 final CSVFormat right = CSVFormat .newFormat ('\'' )
154- .withCommentStart ('#' )
154+ .withCommentMarker ('#' )
155155 .withEscape ('+' )
156156 .withIgnoreSurroundingSpaces (true )
157157 .withQuoteChar ('"' )
@@ -185,7 +185,7 @@ public void testEqualsQuotePolicy() {
185185 public void testEqualsRecordSeparator () {
186186 final CSVFormat right = CSVFormat .newFormat ('\'' )
187187 .withRecordSeparator (CR )
188- .withCommentStart ('#' )
188+ .withCommentMarker ('#' )
189189 .withEscape ('+' )
190190 .withIgnoreEmptyLines (true )
191191 .withIgnoreSurroundingSpaces (true )
@@ -201,7 +201,7 @@ public void testEqualsRecordSeparator() {
201201 public void testEqualsNullString () {
202202 final CSVFormat right = CSVFormat .newFormat ('\'' )
203203 .withRecordSeparator (CR )
204- .withCommentStart ('#' )
204+ .withCommentMarker ('#' )
205205 .withEscape ('+' )
206206 .withIgnoreEmptyLines (true )
207207 .withIgnoreSurroundingSpaces (true )
@@ -218,7 +218,7 @@ public void testEqualsNullString() {
218218 public void testEqualsSkipHeaderRecord () {
219219 final CSVFormat right = CSVFormat .newFormat ('\'' )
220220 .withRecordSeparator (CR )
221- .withCommentStart ('#' )
221+ .withCommentMarker ('#' )
222222 .withEscape ('+' )
223223 .withIgnoreEmptyLines (true )
224224 .withIgnoreSurroundingSpaces (true )
@@ -234,13 +234,13 @@ public void testEqualsSkipHeaderRecord() {
234234
235235 @ Test (expected = IllegalArgumentException .class )
236236 public void testEscapeSameAsCommentStartThrowsException () {
237- CSVFormat .DEFAULT .withEscape ('!' ).withCommentStart ('!' );
237+ CSVFormat .DEFAULT .withEscape ('!' ).withCommentMarker ('!' );
238238 }
239239
240240 @ Test (expected = IllegalArgumentException .class )
241241 public void testEscapeSameAsCommentStartThrowsExceptionForWrapperType () {
242242 // Cannot assume that callers won't use different Character objects
243- CSVFormat .DEFAULT .withEscape (new Character ('!' )).withCommentStart (new Character ('!' ));
243+ CSVFormat .DEFAULT .withEscape (new Character ('!' )).withCommentMarker (new Character ('!' ));
244244 }
245245
246246 @ Test
@@ -275,13 +275,13 @@ public void testNullRecordSeparatorCsv106() {
275275
276276 @ Test (expected = IllegalArgumentException .class )
277277 public void testQuoteCharSameAsCommentStartThrowsException () {
278- CSVFormat .DEFAULT .withQuoteChar ('!' ).withCommentStart ('!' );
278+ CSVFormat .DEFAULT .withQuoteChar ('!' ).withCommentMarker ('!' );
279279 }
280280
281281 @ Test (expected = IllegalArgumentException .class )
282282 public void testQuoteCharSameAsCommentStartThrowsExceptionForWrapperType () {
283283 // Cannot assume that callers won't use different Character objects
284- CSVFormat .DEFAULT .withQuoteChar (new Character ('!' )).withCommentStart ('!' );
284+ CSVFormat .DEFAULT .withQuoteChar (new Character ('!' )).withCommentMarker ('!' );
285285 }
286286
287287 @ Test (expected = IllegalArgumentException .class )
@@ -330,13 +330,13 @@ public void testSerialization() throws Exception {
330330
331331 @ Test
332332 public void testWithCommentStart () throws Exception {
333- final CSVFormat formatWithCommentStart = CSVFormat .DEFAULT .withCommentStart ('#' );
333+ final CSVFormat formatWithCommentStart = CSVFormat .DEFAULT .withCommentMarker ('#' );
334334 assertEquals ( Character .valueOf ('#' ), formatWithCommentStart .getCommentStart ());
335335 }
336336
337337 @ Test (expected = IllegalArgumentException .class )
338338 public void testWithCommentStartCRThrowsException () {
339- CSVFormat .DEFAULT .withCommentStart (CR );
339+ CSVFormat .DEFAULT .withCommentMarker (CR );
340340 }
341341
342342 @ Test
0 commit comments