You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jan 22, 2019. It is now read-only.
public class MyPojo {
public String[] getVal1() {
return new String[]{"", "foo"};
}
public String[] getVal2() {
return new String[]{null, "bar"};
}
public String[] getVal3() {
return new String[]{"baz",null};
}
public static void main(String[] args) throws JsonProcessingException {
MyPojo jacksonBug = new MyPojo();
CsvMapper mapper = new CsvMapper();
String csvContent = mapper.writer(mapper.schemaFor(MyPojo.class).withHeader()).writeValueAsString(jacksonBug);
System.out.println(csvContent);
}
}