@Test public void format_unmatchedCompliance() { final Properties properties = new Properties(); properties.setProperty("org.eclipse.jdt.core.compiler.compliance", "1.4"); final String inputCode = "interface TestObject{List<String> getNames () ;}"; final String outputCode = SourceCodeFormatter.format("interface TestObject{List<String> getNames () ;}", properties, LineEnding.LF); assertEquals(inputCode, outputCode); }
public static String format(final String code) { return format(code, DEFAULT_PROPERTIES, LineEnding.DEFAULT_LINE_ENDING); }
SourceCodeFormatter { public static String format(final String code) { return format(code, DEFAULT_PROPERTIES, LineEnding.DEFAULT_LINE_ENDING); } }
SourceCodeFormatter { public static String format(final String code) { return format(code, DEFAULT_PROPERTIES, LineEnding.DEFAULT_LINE_ENDING); } private  SourceCodeFormatter(); }
SourceCodeFormatter { public static String format(final String code) { return format(code, DEFAULT_PROPERTIES, LineEnding.DEFAULT_LINE_ENDING); } private  SourceCodeFormatter(); static String format(final String code); static String format(final String code, final Properties options, final LineEnding lineEnding); }
SourceCodeFormatter { public static String format(final String code) { return format(code, DEFAULT_PROPERTIES, LineEnding.DEFAULT_LINE_ENDING); } private  SourceCodeFormatter(); static String format(final String code); static String format(final String code, final Properties options, final LineEnding lineEnding); static final Properties DEFAULT_PROPERTIES; }