forked from phoedos/pmd
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:
@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
@ -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>
|
||||
|
Reference in New Issue
Block a user