aboutsummaryrefslogtreecommitdiffstats
path: root/poi-examples/src/main/groovy/SpreadSheetDemo.groovy
diff options
context:
space:
mode:
Diffstat (limited to 'poi-examples/src/main/groovy/SpreadSheetDemo.groovy')
-rw-r--r--poi-examples/src/main/groovy/SpreadSheetDemo.groovy4
1 files changed, 2 insertions, 2 deletions
diff --git a/poi-examples/src/main/groovy/SpreadSheetDemo.groovy b/poi-examples/src/main/groovy/SpreadSheetDemo.groovy
index b9f30c0ce6..0789b56a70 100644
--- a/poi-examples/src/main/groovy/SpreadSheetDemo.groovy
+++ b/poi-examples/src/main/groovy/SpreadSheetDemo.groovy
@@ -36,7 +36,7 @@ WorkbookFactory.create(f,null,true).withCloseable { workbook ->
def sheet = workbook.getSheetAt(sheetNum)
sheet.each { row ->
- def nonEmptyCells = row.grep { c -> c.getCellType() != Cell.CELL_TYPE_BLANK }
+ def nonEmptyCells = row.grep { c -> c.getCellType() != CellType.BLANK }
println " Row ${row.getRowNum()} has ${nonEmptyCells.size()} non-empty cells:"
nonEmptyCells.each { c ->
def cRef = [c] as CellReference
@@ -52,7 +52,7 @@ WorkbookFactory.create(f,null,true).withCloseable { workbook ->
ns1.createRow(1).createCell(0).setCellValue("TODO - Populate with data")
Sheet ns2 = workbook.createSheet("Generated 2")
- exportHeader(ns2, headerStyle, "This is a demo sheet",
+ exportHeader(ns2, headerStyle, "This is a demo sheet",
["ID","Title","Date","Author","Num"] as String[])
ns2.createRow(2).createCell(0).setCellValue(1)
ns2.createRow(3).createCell(0).setCellValue(4)