SystemPrintln always says "System.out.print is used"
A source code analyzer
Brought to you by:
adangel,
juansotuyo
java-logging-java/SystemPrintln's message could use {0} instead of the hardcoded "System.out.print" in order to more accurately and obviously reflect the code being reported on.
public class TestPrintLn {
public static void main(String args[]) {
System.out.print("Print out");
System.out.println("Print out line");
System.err.print("Print err");
System.err.println("Print err line");
}
}
Says "System.out.print is used" for all four reported by the following:
pmd -d TestPrintLn.java -R java-logging-java/SystemPrintln
Will be included in the next release.