From d7c503bee4209ac3ae4359c45c1d8db2ee8694db Mon Sep 17 00:00:00 2001 From: pyxide Date: Mon, 9 Jan 2017 17:29:11 +0100 Subject: [PATCH] checkstyle fixes --- .../src/main/java/net/sourceforge/pmd/ant/Formatter.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 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 ca27acd463..320c97bd1e 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 @@ -206,10 +206,10 @@ public class Formatter { try { Field f = Console.class.getDeclaredField("cs"); f.setAccessible(true); - Object res = f.get(console); - if (res instanceof Charset) { - return ((Charset) res).name(); - } + Object res = f.get(console); + if (res instanceof Charset) { + return ((Charset) res).name(); + } } catch (NoSuchFieldException e) { // fall-through } catch (IllegalAccessException e) {