Skip to content

Commit

Permalink
remove the partial statement
Browse files Browse the repository at this point in the history
  • Loading branch information
ozlerhakan committed Sep 24, 2023
1 parent 121357a commit b823cbe
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/main/java/com/poiji/bind/mapping/HSSFUnmarshaller.java
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,6 @@ private <T> T tailSetFieldValue(Row currentRow, Class<? super T> type, T instanc
Map<String, String> excelUnknownCellsMap = StreamSupport
.stream(Spliterators.spliteratorUnknownSize(currentRow.cellIterator(), Spliterator.ORDERED), false)
.filter(cell -> !mappedColumnIndices.contains(cell.getColumnIndex()))
.filter(cell -> !cell.toString().isEmpty())
.collect(Collectors.toMap(
cell -> indexToTitle.get(cell.getColumnIndex()),
Object::toString));
Expand All @@ -219,7 +218,6 @@ private <T> T tailSetFieldValue(Row currentRow, Class<? super T> type, T instanc
Map<String, String> excelUnknownCellsMap = StreamSupport
.stream(Spliterators.spliteratorUnknownSize(currentRow.cellIterator(), Spliterator.ORDERED), false)
.filter(cell -> !mappedColumnIndices.contains(cell.getColumnIndex()))
.filter(cell -> !cell.toString().isEmpty())
.collect(Collectors.toMap(
cell -> String.valueOf(cell.getColumnIndex()),
Object::toString));
Expand Down Expand Up @@ -300,8 +298,8 @@ private <T> void constructTypeValue(Row currentRow, T instance, Field field,

private boolean isCellNumeric(Cell cell) {
return (cell.getCellType() == CellType.NUMERIC ||
(cell.getCellType() == CellType.FORMULA &&
cell.getCachedFormulaResultType() == CellType.NUMERIC));
(cell.getCellType() == CellType.FORMULA &&
cell.getCachedFormulaResultType() == CellType.NUMERIC));
}

private <T> void setFieldData(T instance, Field field, Object data) {
Expand Down

0 comments on commit b823cbe

Please sign in to comment.