Skip to content

Commit 6234524

Browse files
committed
Use the more modern, compact, and flexible Javadoc "{@code ...}" instead of the HTML "<tt>...</tt>".
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1612019 13f79535-47bb-0310-9956-ffa450edef68
1 parent 7d88212 commit 6234524

2 files changed

Lines changed: 14 additions & 14 deletions

File tree

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

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ public final class CSVFormat implements Serializable {
233233
.withIgnoreSurroundingSpaces(true);
234234

235235
/**
236-
* Default MySQL format used by the <tt>SELECT INTO OUTFILE</tt> and <tt>LOAD DATA INFILE</tt> operations.
236+
* Default MySQL format used by the {@code SELECT INTO OUTFILE} and {@code LOAD DATA INFILE} operations.
237237
*
238238
* <p>
239239
* This is a tab-delimited format with a LF character as the line separator. Values are not quoted and special characters
@@ -320,9 +320,9 @@ public static CSVFormat newFormat(final char delimiter) {
320320
* @param escape
321321
* the Character used to escape special characters in values, may be {@code null} to disable
322322
* @param ignoreSurroundingSpaces
323-
* <tt>true</tt> when whitespaces enclosing values should be ignored
323+
* {@code true} when whitespaces enclosing values should be ignored
324324
* @param ignoreEmptyLines
325-
* <tt>true</tt> when the parser should skip empty lines
325+
* {@code true} when the parser should skip empty lines
326326
* @param recordSeparator
327327
* the line separator to use for output
328328
* @param nullString
@@ -494,7 +494,7 @@ public String[] getHeader() {
494494
/**
495495
* Specifies whether empty headers are ignored when parsing the header line.
496496
*
497-
* @return <tt>true</tt> if headers are ignored when parsing the header line, <tt>false</tt> to throw an
497+
* @return {@code true} if headers are ignored when parsing the header line, {@code false} to throw an
498498
* {@link IllegalArgumentException}.
499499
*/
500500
public boolean isIgnoringEmptyHeaders() {
@@ -504,7 +504,7 @@ public boolean isIgnoringEmptyHeaders() {
504504
/**
505505
* Specifies whether empty lines between records are ignored when parsing input.
506506
*
507-
* @return <tt>true</tt> if empty lines between records are ignored, <tt>false</tt> if they are turned into empty
507+
* @return {@code true} if empty lines between records are ignored, {@code false} if they are turned into empty
508508
* records.
509509
*/
510510
public boolean isIgnoringEmptyLines() {
@@ -514,7 +514,7 @@ public boolean isIgnoringEmptyLines() {
514514
/**
515515
* Specifies whether spaces around values are ignored when parsing input.
516516
*
517-
* @return <tt>true</tt> if spaces around values are ignored, <tt>false</tt> if they are treated as part of the
517+
* @return {@code true} if spaces around values are ignored, {@code false} if they are treated as part of the
518518
* value.
519519
*/
520520
public boolean isIgnoringSurroundingSpaces() {
@@ -599,7 +599,7 @@ public int hashCode()
599599
*
600600
* Note that the comment introducer character is only recognized at the start of a line.
601601
*
602-
* @return <tt>true</tt> is comments are supported, <tt>false</tt> otherwise
602+
* @return {@code true} is comments are supported, {@code false} otherwise
603603
*/
604604
public boolean isCommentingEnabled() {
605605
return commentStart != null;
@@ -836,7 +836,7 @@ public CSVFormat withEscape(final Character escape) {
836836
* CSVFormat format = aformat.withHeader(&quot;name&quot;, &quot;email&quot;, &quot;phone&quot;);</pre>
837837
*
838838
* @param header
839-
* the header, <tt>null</tt> if disabled, empty if parsed automatically, user specified otherwise.
839+
* the header, {@code null} if disabled, empty if parsed automatically, user specified otherwise.
840840
*
841841
* @return A new CSVFormat that is equal to this but with the specified header
842842
* @see #withSkipHeaderRecord(boolean)
@@ -851,8 +851,8 @@ public CSVFormat withHeader(final String... header) {
851851
* Sets the empty header behavior of the format.
852852
*
853853
* @param ignoreEmptyHeaders
854-
* the empty header behavior, <tt>true</tt> to ignore empty headers in the header line,
855-
* <tt>false</tt> to cause an {@link IllegalArgumentException} to be thrown.
854+
* the empty header behavior, {@code true} to ignore empty headers in the header line,
855+
* {@code false} to cause an {@link IllegalArgumentException} to be thrown.
856856
* @return A new CSVFormat that is equal to this but with the specified empty header behavior.
857857
*/
858858
public CSVFormat withIgnoreEmptyHeaders(final boolean ignoreEmptyHeaders) {
@@ -865,8 +865,8 @@ public CSVFormat withIgnoreEmptyHeaders(final boolean ignoreEmptyHeaders) {
865865
* Sets the empty line skipping behavior of the format.
866866
*
867867
* @param ignoreEmptyLines
868-
* the empty line skipping behavior, <tt>true</tt> to ignore the empty lines between the records,
869-
* <tt>false</tt> to translate empty lines to empty records.
868+
* the empty line skipping behavior, {@code true} to ignore the empty lines between the records,
869+
* {@code false} to translate empty lines to empty records.
870870
* @return A new CSVFormat that is equal to this but with the specified empty line skipping behavior.
871871
*/
872872
public CSVFormat withIgnoreEmptyLines(final boolean ignoreEmptyLines) {
@@ -879,7 +879,7 @@ public CSVFormat withIgnoreEmptyLines(final boolean ignoreEmptyLines) {
879879
* Sets the trimming behavior of the format.
880880
*
881881
* @param ignoreSurroundingSpaces
882-
* the trimming behavior, <tt>true</tt> to remove the surrounding spaces, <tt>false</tt> to leave the
882+
* the trimming behavior, {@code true} to remove the surrounding spaces, {@code false} to leave the
883883
* spaces as is.
884884
* @return A new CSVFormat that is equal to this but with the specified trimming behavior.
885885
*/

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -439,7 +439,7 @@ public void remove() {
439439
/**
440440
* Parses the next record from the current point in the stream.
441441
*
442-
* @return the record as an array of values, or <tt>null</tt> if the end of the stream has been reached
442+
* @return the record as an array of values, or {@code null} if the end of the stream has been reached
443443
* @throws IOException
444444
* on parse error or input read-failure
445445
*/

0 commit comments

Comments
 (0)