mirror of
https://github.com/apache/commons-csv.git
synced 2025-02-16 23:16:01 +00:00
Use Objects.toString()
This commit is contained in:
parent
9eb208af32
commit
f0a90dafe1
@ -789,7 +789,7 @@ public final class CSVParser implements Iterable<CSVRecord>, Closeable {
|
||||
|
||||
if (!recordList.isEmpty()) {
|
||||
recordNumber++;
|
||||
final String comment = sb == null ? null : sb.toString();
|
||||
final String comment = Objects.toString(sb, null);
|
||||
result = new CSVRecord(this, recordList.toArray(Constants.EMPTY_STRING_ARRAY), comment,
|
||||
recordNumber, startCharPosition);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user