aboutsummaryrefslogtreecommitdiffstats
path: root/src/testcases/org/apache/poi/ss
diff options
context:
space:
mode:
authorDominik Stadler <centic@apache.org>2020-04-24 20:58:32 +0000
committerDominik Stadler <centic@apache.org>2020-04-24 20:58:32 +0000
commit52320e3213c882049a2b20f259f0c430dd0f94b8 (patch)
tree1dac704198b9f38ef73ac682561ae43d97091fe1 /src/testcases/org/apache/poi/ss
parenta415ae13f7769cc894de3cc06f4379073d78d8f5 (diff)
downloadpoi-52320e3213c882049a2b20f259f0c430dd0f94b8.tar.gz
poi-52320e3213c882049a2b20f259f0c430dd0f94b8.zip
Fix some IDE warnings, remove usage of deprecated methods
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1876947 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/testcases/org/apache/poi/ss')
-rw-r--r--src/testcases/org/apache/poi/ss/usermodel/BaseTestCell.java13
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");