forked from phoedos/pmd
checkstyle fixes
This commit is contained in:
pyxide
committed by
Juan Martín Sotuyo Dodero
parent
abf65acb63
commit
89600bfcc4
@ -72,7 +72,7 @@ public class Formatter {
|
||||
if (null == s) {
|
||||
|
||||
if (toConsole) {
|
||||
if(null == System.console()) {
|
||||
if (null == System.console()) {
|
||||
// pipe or redirect, no interactive console.
|
||||
s = System.getProperty("file.encoding");
|
||||
} else {
|
||||
@ -91,8 +91,7 @@ public class Formatter {
|
||||
parameter.setName("encoding");
|
||||
parameter.setValue(charset.name());
|
||||
parameters.add(parameter);
|
||||
}
|
||||
else {
|
||||
} else {
|
||||
charset = Charset.forName(s);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user