Fixed deprecation warnings
git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@352102 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
15c7122ac0
commit
602cbd53c7
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user