diff options
author | Josh Micich <josh@apache.org> | 2008-08-25 22:41:08 +0000 |
---|---|---|
committer | Josh Micich <josh@apache.org> | 2008-08-25 22:41:08 +0000 |
commit | 04dfa8d39f2592299829fff743621b93ff64c965 (patch) | |
tree | 881398768360c038ef30c0ab76419702ce091282 /src/testcases/org/apache/poi/hssf/usermodel/TestHSSFOptimiser.java | |
parent | d4b6c06f2b15a1aa1e9f991192e6869ca35d4f3a (diff) | |
download | poi-04dfa8d39f2592299829fff743621b93ff64c965.tar.gz poi-04dfa8d39f2592299829fff743621b93ff64c965.zip |
Replaced calls to deprecated versions of createCell(), getCell(), createRow(), and getRow(). (Changing short to int)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@688910 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/testcases/org/apache/poi/hssf/usermodel/TestHSSFOptimiser.java')
-rw-r--r-- | src/testcases/org/apache/poi/hssf/usermodel/TestHSSFOptimiser.java | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/src/testcases/org/apache/poi/hssf/usermodel/TestHSSFOptimiser.java b/src/testcases/org/apache/poi/hssf/usermodel/TestHSSFOptimiser.java index b998fdd519..a3efa0393d 100644 --- a/src/testcases/org/apache/poi/hssf/usermodel/TestHSSFOptimiser.java +++ b/src/testcases/org/apache/poi/hssf/usermodel/TestHSSFOptimiser.java @@ -107,13 +107,13 @@ public class TestHSSFOptimiser extends TestCase { HSSFRichTextString rtr1 = new HSSFRichTextString("Test"); rtr1.applyFont(0, 2, f1); rtr1.applyFont(3, 4, f2); - r.createCell((short)0).setCellValue(rtr1); + r.createCell(0).setCellValue(rtr1); HSSFRichTextString rtr2 = new HSSFRichTextString("AlsoTest"); rtr2.applyFont(0, 2, f3); rtr2.applyFont(3, 5, f5); rtr2.applyFont(6, 8, f6); - r.createCell((short)1).setCellValue(rtr2); + r.createCell(1).setCellValue(rtr2); // Check what we have now @@ -198,14 +198,14 @@ public class TestHSSFOptimiser extends TestCase { HSSFSheet s = wb.createSheet(); HSSFRow r = s.createRow(0); - r.createCell((short)0).setCellStyle(cs1); - r.createCell((short)1).setCellStyle(cs2); - r.createCell((short)2).setCellStyle(cs3); - r.createCell((short)3).setCellStyle(cs4); - r.createCell((short)4).setCellStyle(cs5); - r.createCell((short)5).setCellStyle(cs6); - r.createCell((short)6).setCellStyle(cs1); - r.createCell((short)7).setCellStyle(cs2); + r.createCell(0).setCellStyle(cs1); + r.createCell(1).setCellStyle(cs2); + r.createCell(2).setCellStyle(cs3); + r.createCell(3).setCellStyle(cs4); + r.createCell(4).setCellStyle(cs5); + r.createCell(5).setCellStyle(cs6); + r.createCell(6).setCellStyle(cs1); + r.createCell(7).setCellStyle(cs2); assertEquals(21, r.getCell(0).getCellValueRecord().getXFIndex()); assertEquals(26, r.getCell(5).getCellValueRecord().getXFIndex()); |