public Formatter build() { return new Formatter(lineEndingsPolicy, encoding, rootDir, steps, exceptionPolicy == null ? FormatExceptionPolicy.failOnlyOnError() : exceptionPolicy); } }
private Path rootDir = Paths.get(StandardSystemProperty.USER_DIR.value()); private List<FormatterStep> steps = new ArrayList<>(); private FormatExceptionPolicy exceptionPolicy = FormatExceptionPolicy.failOnlyOnError();