Added errors to text renderer

git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@1509 51baf565-9d33-0410-a72c-fc3788e3496d
This commit is contained in:
Tom Copeland
2003-03-06 17:25:56 +00:00
parent f588d7ea6d
commit 17fd2793ef

View File

@ -18,10 +18,10 @@ public class TextRenderer implements Renderer {
buf.append("\t" + rv.getDescription());
}
for (Iterator i = report.errors(); i.hasNext();) {
Report.ProcessingError rv = (Report.ProcessingError) i.next();
buf.append(EOL + rv.getFile());
Report.ProcessingError error = (Report.ProcessingError) i.next();
buf.append(EOL + error.getFile());
buf.append("\t-");
buf.append("\t" + rv.getMsg());
buf.append("\t" + error.getMsg());
}
return buf.toString();
}