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);
|
// r.setRowNum(( short ) rownum);
|
||||||
for (short cellnum = ( short ) 0; cellnum < 50; cellnum += 2)
|
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
|
c.setCellValue(rownum * 10000 + cellnum
|
||||||
+ ((( double ) rownum / 1000)
|
+ ((( double ) rownum / 1000)
|
||||||
+ (( double ) cellnum / 10000)));
|
+ (( double ) cellnum / 10000)));
|
||||||
c = r.createCell(( short ) (cellnum + 1),
|
c = r.createCell(( short ) (cellnum + 1));
|
||||||
HSSFCell.CELL_TYPE_STRING);
|
|
||||||
c.setCellValue("TEST");
|
c.setCellValue("TEST");
|
||||||
c.setCellStyle(cs);
|
c.setCellStyle(cs);
|
||||||
}
|
}
|
||||||
@ -204,13 +203,12 @@ public class TestCellStyle
|
|||||||
// r.setRowNum(( short ) rownum);
|
// r.setRowNum(( short ) rownum);
|
||||||
for (short cellnum = ( short ) 0; cellnum < 50; cellnum += 2)
|
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
|
c.setCellValue(rownum * 10000 + cellnum
|
||||||
+ ((( double ) rownum / 1000)
|
+ ((( double ) rownum / 1000)
|
||||||
+ (( double ) cellnum / 10000)));
|
+ (( double ) cellnum / 10000)));
|
||||||
c.setCellStyle(cs);
|
c.setCellStyle(cs);
|
||||||
c = r.createCell(( short ) (cellnum + 1),
|
c = r.createCell(( short ) (cellnum + 1));
|
||||||
HSSFCell.CELL_TYPE_STRING);
|
|
||||||
c.setCellValue("TEST");
|
c.setCellValue("TEST");
|
||||||
c.setCellStyle(cs2);
|
c.setCellStyle(cs2);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user