Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow java format to not wrap stream calls #261

Closed
quim3ra opened this issue Feb 11, 2021 · 1 comment
Closed

Allow java format to not wrap stream calls #261

quim3ra opened this issue Feb 11, 2021 · 1 comment

Comments

@quim3ra
Copy link

quim3ra commented Feb 11, 2021

I really love the plugin, but I think it's need a little bit of configuration to avoid wrapping every chained call, for streams is a nightmare, it's not the same reading this code block:

Stream.ofNullable(shops.getShops())
            .flatMap(Collection::stream)
	    .map(converter::convert)
	    .collect(Collectors.toList());

Than this one, after the java format has been executed:

Stream.ofNullable(shops.getShops()).flatMap(Collection::stream)
	    .map(converter::convert).collect(Collectors.toList());
@wilkinsona
Copy link
Contributor

Thanks for the suggestion. This is a duplicate of #124.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants