Skip to content

Commit

Permalink
fix checkstyle
Browse files Browse the repository at this point in the history
  • Loading branch information
osiegmar committed Sep 10, 2024
1 parent ec80f0e commit 519ed4a
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public class ExampleCsvReaderWithSpecialQuotedFieldHandling {
"quoted foo",unquoted foo
""";

public static void main(String[] args) {
public static void main(final String[] args) {
CsvReader.builder()
.skipEmptyLines(false)
.build(new QuotableFieldHandler(), DATA)
Expand All @@ -28,7 +28,9 @@ static class QuotableFieldHandler extends AbstractBaseCsvCallbackHandler<List<Qu
private final List<QuotableField> fields = new ArrayList<>();

@Override
protected void handleField(final int fieldIdx, final char[] buf, final int offset, final int len, final boolean quoted) {
protected void handleField(final int fieldIdx,
final char[] buf, final int offset, final int len,
final boolean quoted) {
final String value = new String(buf, offset, len);
fields.add(new QuotableField(value, quoted));
}
Expand Down

0 comments on commit 519ed4a

Please sign in to comment.