From f4ed5c4214773d32db2fc049ed069cec3bbf2708 Mon Sep 17 00:00:00 2001 From: Glen Stampoultzis Date: Mon, 18 Feb 2002 11:59:08 +0000 Subject: Fixed deprecation warnings git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@352102 13f79535-47bb-0310-9956-ffa450edef68 --- src/testcases/org/apache/poi/hssf/usermodel/TestCellStyle.java | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'src') 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); } -- cgit v1.2.3