From 89600bfcc4e7d75f67bfbeb77dc04865c8355921 Mon Sep 17 00:00:00 2001 From: pyxide Date: Sat, 7 Jan 2017 04:15:27 +0100 Subject: [PATCH] checkstyle fixes --- .../src/main/java/net/sourceforge/pmd/ant/Formatter.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/pmd-core/src/main/java/net/sourceforge/pmd/ant/Formatter.java b/pmd-core/src/main/java/net/sourceforge/pmd/ant/Formatter.java index efe3dae1d3..3ba06ef0b1 100644 --- a/pmd-core/src/main/java/net/sourceforge/pmd/ant/Formatter.java +++ b/pmd-core/src/main/java/net/sourceforge/pmd/ant/Formatter.java @@ -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); } }