private FormatterFunc.Closeable toFunc() {
var runner = new ProcessRunner();
return FormatterFunc.Closeable.of(runner, this::format);
}
private FormatterFunc.Closeable toFunc() {
return FormatterFunc.Closeable.of(new ProcessRunner(), this::format);
}
kindly consider new rule or optional enhancement of
DirectReturnto prefer inlined direct turn instead ofImmediateVariableregarding the same motivation as the original S1488 issue.S1488checkstyle/checkstyle#16488