Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,16 @@ public Object getValue(Cell cell) {
};
}

@Override
public String getStringValue(Cell cell) {
Object value = getValue(cell);
String strValue = value.toString();
if ((value instanceof Number) && strValue.endsWith(".0")) {
return strValue.substring(0, strValue.length() - 2);
}
return strValue;
}

@Override
public Instant getInstantValue(Cell cell) {
return cell.getDateCellValue().toInstant();
Expand Down