checkstyle fixes

This commit is contained in:
pyxide
2017-01-09 17:29:11 +01:00
committed by Juan Martín Sotuyo Dodero
parent 958f8df5f5
commit d7c503bee4

View File

@ -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) {