pmd: fixed #1055 Please add a colon in the ant output after line,column for Oracle JDeveloper IDE usage

This commit is contained in:
Andreas Dangel 2013-01-21 21:18:18 +01:00
parent ac8e3314a3
commit 7ee96a6b52
3 changed files with 4 additions and 3 deletions

View File

@ -7,6 +7,7 @@ Fixed bug 1043: node.getEndLine() always returns 0 (ECMAscript)
Fixed bug 1044: Unknown option: -excludemarker
Fixed bug 1047: False Positive in 'for' loops for LocalVariableCouldBeFinal in 5.0.1
Fixed bug 1048: CommentContent Rule, String Index out of range Exception
Fixed bug 1055: Please add a colon in the ant output after line,column for Oracle JDeveloper IDE usage
Fixed bug 1060: GodClassRule >>> wrong method
November 28, 2012 - 5.0.1:

View File

@ -45,7 +45,7 @@ public class TextRenderer extends AbstractIncrementingRenderer {
RuleViolation rv = violations.next();
buf.append(rv.getFilename());
buf.append(':').append(Integer.toString(rv.getBeginLine()));
buf.append('\t').append(rv.getDescription()).append(PMD.EOL);
buf.append(":\t").append(rv.getDescription()).append(PMD.EOL);
writer.write(buf.toString());
}
}

View File

@ -12,7 +12,7 @@ public class TextRendererTest extends AbstractRendererTst {
@Override
public String getExpected() {
return "n/a:1\tmsg" + PMD.EOL;
return "n/a:1:\tmsg" + PMD.EOL;
}
@Override
@ -22,7 +22,7 @@ public class TextRendererTest extends AbstractRendererTst {
@Override
public String getExpectedMultiple() {
return "n/a:1\tmsg" + PMD.EOL + "n/a:1\tmsg" + PMD.EOL;
return "n/a:1:\tmsg" + PMD.EOL + "n/a:1:\tmsg" + PMD.EOL;
}
@Override