Skip to content

Commit

Permalink
- rename builder to something more descriptive of its usage
Browse files Browse the repository at this point in the history
  • Loading branch information
kellyrob99 committed Mar 18, 2012
1 parent a6a56f2 commit 8582011
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -56,15 +56,15 @@ class NaturalResourcesCanadaExcelParser

public Map convertToMap(File data)
{
final ExcelBuilder builder = new ExcelBuilder(data.absolutePath)
final ExcelBuilder excelReader = new ExcelBuilder(data.absolutePath)
Map<String, String> symbolTable = [:]
builder.eachLine(SYMBOLS) { HSSFRow row ->
excelReader.eachLine(SYMBOLS) { HSSFRow row ->
symbolTable[row.getCell(0).stringCellValue] = row.getCell(1).stringCellValue
}

final Closure collector = { Map species ->
Map speciesMap = [name: species.species]
builder.eachLine(species) {HSSFRow row ->
excelReader.eachLine(species) {HSSFRow row ->
//ensure that we are reading from the correct place in the file
if (row.rowNum == species.offset)
{
Expand Down

0 comments on commit 8582011

Please sign in to comment.