Remove unnecessary short cast. This closes #37 on github

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1757457 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Javen O'Neal 2016-08-24 03:47:21 +00:00
parent 9665b9859a
commit bc1f9dfb27

View File

@ -32,13 +32,13 @@ public class FillsAndColors {
Sheet sheet = wb.createSheet("new sheet"); Sheet sheet = wb.createSheet("new sheet");
// Create a row and put some cells in it. Rows are 0 based. // Create a row and put some cells in it. Rows are 0 based.
Row row = sheet.createRow((short) 1); Row row = sheet.createRow(1);
// Aqua background // Aqua background
CellStyle style = wb.createCellStyle(); CellStyle style = wb.createCellStyle();
style.setFillBackgroundColor(IndexedColors.AQUA.getIndex()); style.setFillBackgroundColor(IndexedColors.AQUA.getIndex());
style.setFillPattern(CellStyle.BIG_SPOTS); style.setFillPattern(CellStyle.BIG_SPOTS);
Cell cell = row.createCell((short) 1); Cell cell = row.createCell(1);
cell.setCellValue(new XSSFRichTextString("X")); cell.setCellValue(new XSSFRichTextString("X"));
cell.setCellStyle(style); cell.setCellStyle(style);
@ -46,7 +46,7 @@ public class FillsAndColors {
style = wb.createCellStyle(); style = wb.createCellStyle();
style.setFillForegroundColor(IndexedColors.ORANGE.getIndex()); style.setFillForegroundColor(IndexedColors.ORANGE.getIndex());
style.setFillPattern(CellStyle.SOLID_FOREGROUND); style.setFillPattern(CellStyle.SOLID_FOREGROUND);
cell = row.createCell((short) 2); cell = row.createCell(2);
cell.setCellValue(new XSSFRichTextString("X")); cell.setCellValue(new XSSFRichTextString("X"));
cell.setCellStyle(style); cell.setCellStyle(style);