Skip to content

new Rule: ImmediateVariable / UseFunctionalInline #5307

@Pankraz76

Description

@Pankraz76

kindly consider new rule or optional enhancement of DirectReturn to prefer inlined direct turn instead of ImmediateVariable regarding the same motivation as the original S1488 issue.

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);
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions