diff options
author | Glen Stampoultzis <glens@apache.org> | 2002-02-18 11:59:08 +0000 |
---|---|---|
committer | Glen Stampoultzis <glens@apache.org> | 2002-02-18 11:59:08 +0000 |
commit | f4ed5c4214773d32db2fc049ed069cec3bbf2708 (patch) | |
tree | 4c470ef9db89c89cca8e680528ea873f57d03327 /src | |
parent | 658a1a46a3222ed31347c313238aed97467456e7 (diff) | |
download | poi-f4ed5c4214773d32db2fc049ed069cec3bbf2708.tar.gz poi-f4ed5c4214773d32db2fc049ed069cec3bbf2708.zip |
Fixed deprecation warnings
git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@352102 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src')
-rw-r--r-- | src/testcases/org/apache/poi/hssf/usermodel/TestCellStyle.java | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/testcases/org/apache/poi/hssf/usermodel/TestCellStyle.java b/src/testcases/org/apache/poi/hssf/usermodel/TestCellStyle.java index 49f49c6e5d..f7eb6a5162 100644 --- a/src/testcases/org/apache/poi/hssf/usermodel/TestCellStyle.java +++ b/src/testcases/org/apache/poi/hssf/usermodel/TestCellStyle.java @@ -116,12 +116,11 @@ public class TestCellStyle // r.setRowNum(( short ) rownum); for (short cellnum = ( short ) 0; cellnum < 50; cellnum += 2) { - c = r.createCell(cellnum, HSSFCell.CELL_TYPE_NUMERIC); + c = r.createCell(cellnum); c.setCellValue(rownum * 10000 + cellnum + ((( double ) rownum / 1000) + (( double ) cellnum / 10000))); - c = r.createCell(( short ) (cellnum + 1), - HSSFCell.CELL_TYPE_STRING); + c = r.createCell(( short ) (cellnum + 1)); c.setCellValue("TEST"); c.setCellStyle(cs); } @@ -204,13 +203,12 @@ public class TestCellStyle // r.setRowNum(( short ) rownum); for (short cellnum = ( short ) 0; cellnum < 50; cellnum += 2) { - c = r.createCell(cellnum, HSSFCell.CELL_TYPE_NUMERIC); + c = r.createCell(cellnum); c.setCellValue(rownum * 10000 + cellnum + ((( double ) rownum / 1000) + (( double ) cellnum / 10000))); c.setCellStyle(cs); - c = r.createCell(( short ) (cellnum + 1), - HSSFCell.CELL_TYPE_STRING); + c = r.createCell(( short ) (cellnum + 1)); c.setCellValue("TEST"); c.setCellStyle(cs2); } |