Fixed bug 1637573 - The PMD Ant task no longer closes System.out if toConsole is set; thx to Stephan Classens for the fix

git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@5028 51baf565-9d33-0410-a72c-fc3788e3496d
This commit is contained in:
Tom Copeland
2007-02-01 14:34:08 +00:00
parent 30063d0b33
commit 42aa947983
2 changed files with 6 additions and 2 deletions

View File

@ -124,7 +124,11 @@ public class Formatter {
private void outputReportTo(Writer writer, Report report, boolean consoleRenderer) throws IOException {
getRenderer(consoleRenderer).render(writer, report);
writer.write(PMD.EOL);
writer.close();
if (consoleRenderer) {
writer.flush();
} else {
writer.close();
}
}

View File

@ -61,7 +61,7 @@
<li>Thomas Leplus - Rewrote UselessStringValueOf</li>
<li>Larry Brigman - Reported symlink bug in CPD</li>
<li>Harald Rohan - Reported bug in CPD GUI</li>
<li>classens - Noted missing varargs setting in ASTFormalParameter</li>
<li>Stephan Classens - Patch for file closing bug, noted missing varargs setting in ASTFormalParameter</li>
<li>piair - Implemented StringBufferInstantiationWithChar, AvoidUsingOctalValues</li>
<li>Christopher Eagan - Reported bug in VariableNamingConventions</li>
<li><a href="http://www.livejournal.com/users/insac/">Fabio Insaccanebbia</a> - Improvement for UseArraysAsList, UnusedNullCheckInEquals, MisplacedNullCheck, UselessOperationOnImmutable, AvoidArrayLoops, UseArraysAsList, AvoidConstantsInterface, AvoidDecimalLiteralsInBigDecimalConstructor, ClassCastExceptionWithToArray, BigIntegerInstantiation</li>