diff options
Diffstat (limited to 'src/testcases/org/apache/poi/ss')
-rw-r--r-- | src/testcases/org/apache/poi/ss/usermodel/BaseTestCell.java | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/src/testcases/org/apache/poi/ss/usermodel/BaseTestCell.java b/src/testcases/org/apache/poi/ss/usermodel/BaseTestCell.java index 2ab0f48b5e..e2032de2df 100644 --- a/src/testcases/org/apache/poi/ss/usermodel/BaseTestCell.java +++ b/src/testcases/org/apache/poi/ss/usermodel/BaseTestCell.java @@ -133,18 +133,15 @@ public abstract class BaseTestCell { assertProhibitedValueAccess(cell, CellType.BOOLEAN, CellType.STRING, CellType.FORMULA, CellType.ERROR); - String strNull = null; - cell.setCellValue(strNull); + cell.setCellValue((String)null); assertEquals("", cell.getStringCellValue()); assertEquals(CellType.BLANK, cell.getCellType()); - LocalDate ldNull = null; - cell.setCellValue(ldNull); + cell.setCellValue((LocalDate)null); assertNull(cell.getLocalDateTimeCellValue()); assertEquals(CellType.BLANK, cell.getCellType()); - LocalDateTime ldtNull = null; - cell.setCellValue(ldtNull); + cell.setCellValue((LocalDateTime)null); assertNull(cell.getLocalDateTimeCellValue()); assertEquals(CellType.BLANK, cell.getCellType()); @@ -769,12 +766,12 @@ public abstract class BaseTestCell { Sheet sh = wb1.createSheet(); Row row = sh.createRow(0); Cell cell = row.createCell(0); - cell.setCellValue(Integer.valueOf(23)); + cell.setCellValue(23); cell.setCellValue("some"); cell = row.createCell(1); - cell.setCellValue(Integer.valueOf(23)); + cell.setCellValue(23); cell.setCellValue("24"); |