void () { getSettings().KEEP_SIMPLE_BLOCKS_IN_ONE_LINE = true; getSettings().BRACE_STYLE = CommonCodeStyleSettings.NEXT_LINE; getSettings().SPACE_BEFORE_TRY_PARENTHESES = true; getSettings().SPACE_BEFORE_TRY_LBRACE = true; doMethodTest("try(AutoCloseable r = null){ }", "try (AutoCloseable r = null) {}"); getSettings().SPACE_BEFORE_TRY_PARENTHESES = false; getSettings().SPACE_BEFORE_TRY_LBRACE = false; doMethodTest("try (AutoCloseable r = null) { }", "try(AutoCloseable r = null){}"); }