void () { getSettings().SPACE_WITHIN_BRACES = true; String before = "do { System.out.println(\"AAA!\"); } while (1 == 1);"; String after = "do { System.out.println(\"AAA!\"); } while (1 == 1);"; getSettings().KEEP_SIMPLE_BLOCKS_IN_ONE_LINE = true; checkFormatterWithDifferentBraceStyles(before, after, after, after, after); }