String author = StringUtils.trimToNull(fields[1]);
BlameLine blameLine = new BlameLine().revision(revision).author(author);
String dateStr = StringUtils.trimToNull(fields[2]);
// Will throw an exception, when date is not in format "yyyy-MM-dd"
if (dateStr != null) {
blameLine.date(DateUtils.parseDate(dateStr));
}
blame.add(blameLine);
}
}
result.blameResult(inputFile, blame);