Skip to content
This repository was archived by the owner on Jun 3, 2026. It is now read-only.

Commit f0a90da

Browse files
committed
Use Objects.toString()
1 parent 9eb208a commit f0a90da

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -789,7 +789,7 @@ CSVRecord nextRecord() throws IOException {
789789

790790
if (!recordList.isEmpty()) {
791791
recordNumber++;
792-
final String comment = sb == null ? null : sb.toString();
792+
final String comment = Objects.toString(sb, null);
793793
result = new CSVRecord(this, recordList.toArray(Constants.EMPTY_STRING_ARRAY), comment,
794794
recordNumber, startCharPosition);
795795
}

0 commit comments

Comments
 (0)