Added 'success!' message
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@2142 51baf565-9d33-0410-a72c-fc3788e3496d
This commit is contained in:
@ -9,6 +9,9 @@ import java.util.Iterator;
|
|||||||
public class TextRenderer implements Renderer {
|
public class TextRenderer implements Renderer {
|
||||||
|
|
||||||
public String render(Report report) {
|
public String render(Report report) {
|
||||||
|
if (report.isEmpty()) {
|
||||||
|
return "No problems found!";
|
||||||
|
}
|
||||||
StringBuffer buf = new StringBuffer();
|
StringBuffer buf = new StringBuffer();
|
||||||
for (Iterator i = report.iterator(); i.hasNext();) {
|
for (Iterator i = report.iterator(); i.hasNext();) {
|
||||||
RuleViolation rv = (RuleViolation) i.next();
|
RuleViolation rv = (RuleViolation) i.next();
|
||||||
|
Reference in New Issue
Block a user