aboutsummaryrefslogtreecommitdiffstats
path: root/src/examples
diff options
context:
space:
mode:
authorDominik Stadler <centic@apache.org>2016-11-25 05:34:58 +0000
committerDominik Stadler <centic@apache.org>2016-11-25 05:34:58 +0000
commitf2975b1e5fef0d1bd2193a2e529f30e2a9ad9ce4 (patch)
tree4e6e00410ac79ef05bb353e34ef7c38872bfbbc2 /src/examples
parentf656e74c4bd7d3901972b52278a620ff938ed77f (diff)
downloadpoi-f2975b1e5fef0d1bd2193a2e529f30e2a9ad9ce4.tar.gz
poi-f2975b1e5fef0d1bd2193a2e529f30e2a9ad9ce4.zip
Remove unnecessary cast and reformat some code a bit
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1771247 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/examples')
-rw-r--r--src/examples/src/org/apache/poi/xssf/usermodel/examples/WorkingWithRichText.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/examples/src/org/apache/poi/xssf/usermodel/examples/WorkingWithRichText.java b/src/examples/src/org/apache/poi/xssf/usermodel/examples/WorkingWithRichText.java
index 09def94461..f982ea5283 100644
--- a/src/examples/src/org/apache/poi/xssf/usermodel/examples/WorkingWithRichText.java
+++ b/src/examples/src/org/apache/poi/xssf/usermodel/examples/WorkingWithRichText.java
@@ -32,7 +32,7 @@ public class WorkingWithRichText {
XSSFWorkbook wb = new XSSFWorkbook(); //or new HSSFWorkbook();
try {
XSSFSheet sheet = wb.createSheet();
- XSSFRow row = sheet.createRow((short) 2);
+ XSSFRow row = sheet.createRow(2);
XSSFCell cell = row.createCell(1);
XSSFRichTextString rt = new XSSFRichTextString("The quick brown fox");
@@ -53,7 +53,7 @@ public class WorkingWithRichText {
rt.append(" Jumped over the lazy dog", font3);
cell.setCellValue(rt);
-
+
// Write the output to a file
OutputStream fileOut = new FileOutputStream("xssf-richtext.xlsx");
try {