Skip to content

Commit f0b4fc5

Browse files
committed
Fix JavaDoc problems
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1617076 13f79535-47bb-0310-9956-ffa450edef68
1 parent 3c7be94 commit f0b4fc5

2 files changed

Lines changed: 19 additions & 16 deletions

File tree

src/main/java/org/apache/commons/csv/CSVFormat.java

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -162,29 +162,31 @@ public final class CSVFormat implements Serializable {
162162
/**
163163
* Standard comma separated format, as for {@link #RFC4180} but allowing empty lines.
164164
*
165-
* <p>Settings are:
165+
* <p>
166+
* Settings are:
167+
* </p>
166168
* <ul>
167169
* <li>withDelimiter(',')</li>
168170
* <li>withQuoteChar('"')</li>
169171
* <li>withRecordSeparator("\r\n")</li>
170172
* <li>withIgnoreEmptyLines(true)</li>
171173
* </ul>
172-
* </p>
173174
*/
174175
public static final CSVFormat DEFAULT = new CSVFormat(COMMA, DOUBLE_QUOTE_CHAR, null, null, null,
175176
false, true, CRLF, null, null, false, false);
176177

177178
/**
178179
* Comma separated format as defined by <a href="http://tools.ietf.org/html/rfc4180">RFC 4180</a>.
179180
*
180-
* <p>Settings are:
181+
* <p>
182+
* Settings are:
183+
* </p>
181184
* <ul>
182185
* <li>withDelimiter(',')</li>
183186
* <li>withQuoteChar('"')</li>
184187
* <li>withRecordSeparator("\r\n")</li>
185188
* <li>withIgnoreEmptyLines(false)</li>
186189
* </ul>
187-
* </p>
188190
*/
189191
public static final CSVFormat RFC4180 = DEFAULT.withIgnoreEmptyLines(false);
190192

@@ -202,13 +204,13 @@ public final class CSVFormat implements Serializable {
202204
*
203205
* <p>
204206
* Settings are:
207+
* </p>
205208
* <ul>
206209
* <li>withDelimiter(',')</li>
207210
* <li>withQuoteChar('"')</li>
208211
* <li>withRecordSeparator("\r\n")</li>
209212
* <li>withIgnoreEmptyLines(false)</li>
210213
* </ul>
211-
* </p>
212214
* <p>
213215
* Note: this is currently the same as {@link #RFC4180}.
214216
* </p>
@@ -218,14 +220,15 @@ public final class CSVFormat implements Serializable {
218220
/**
219221
* Tab-delimited format.
220222
*
221-
* <p>Settings are:
223+
* <p>
224+
* Settings are:
225+
* </p>
222226
* <ul>
223227
* <li>withDelimiter('\t')</li>
224228
* <li>withQuoteChar('"')</li>
225229
* <li>withRecordSeparator("\r\n")</li>
226230
* <li>withIgnoreSurroundingSpaces(true)</li>
227231
* </ul>
228-
* </p>
229232
*/
230233
public static final CSVFormat TDF =
231234
DEFAULT
@@ -242,14 +245,14 @@ public final class CSVFormat implements Serializable {
242245
*
243246
* <p>
244247
* Settings are:
248+
* </p>
245249
* <ul>
246250
* <li>withDelimiter('\t')</li>
247251
* <li>withQuoteChar(null)</li>
248252
* <li>withRecordSeparator('\n')</li>
249253
* <li>withIgnoreEmptyLines(false)</li>
250254
* <li>withEscape('\\')</li>
251255
* </ul>
252-
* </p>
253256
* @see <a href="http://dev.mysql.com/doc/refman/5.1/en/load-data.html">
254257
* http://dev.mysql.com/doc/refman/5.1/en/load-data.html</a>
255258
*/

src/main/java/org/apache/commons/csv/CSVPrinter.java

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -387,21 +387,21 @@ public void printRecord(final Object... values) throws IOException {
387387
*
388388
* <p>Given the following data structure:</p>
389389
* <pre>
390-
* <source>
390+
* <code>
391391
* List&lt;String[]&gt; data = ...
392392
* data.add(new String[]{ "A", "B", "C" });
393393
* data.add(new String[]{ "1", "2", "3" });
394394
* data.add(new String[]{ "A1", "B2", "C3" });
395-
* </source>
395+
* </code>
396396
* </pre>
397397
*
398398
* <p>Calling this method will print:</p>
399399
* <pre>
400-
* <source>
400+
* <code>
401401
* A, B, C
402402
* 1, 2, 3
403403
* A1, B2, C3
404-
* </source>
404+
* </code>
405405
* </pre>
406406
*
407407
* @param values
@@ -430,21 +430,21 @@ public void printRecords(final Iterable<?> values) throws IOException {
430430
*
431431
* <p>Given the following data structure:</p>
432432
* <pre>
433-
* <source>
433+
* <code>
434434
* String[][] data = new String[3][]
435435
* data[0] = String[]{ "A", "B", "C" };
436436
* data[1] = new String[]{ "1", "2", "3" };
437437
* data[2] = new String[]{ "A1", "B2", "C3" };
438-
* </source>
438+
* </code>
439439
* </pre>
440440
*
441441
* <p>Calling this method will print:</p>
442442
* <pre>
443-
* <source>
443+
* <code>
444444
* A, B, C
445445
* 1, 2, 3
446446
* A1, B2, C3
447-
* </source>
447+
* </code>
448448
* </pre>
449449
*
450450
* @param values

0 commit comments

Comments
 (0)