cheptsov / AdvancedExpressionFolding

https://plugins.jetbrains.com/plugin/9320?pr=idea
141 stars 29 forks source link

Folding `.stream()` to nothing, looks weird with call-chain-invocation-per-line formatting #113

Closed ewirch closed 6 years ago

ewirch commented 6 years ago

This

return Seasons.all()
    .stream()
    .filter(season -> season.getDate().isAfter(today))

get's folded to

return Seasons.all()

    .filter(season -> season.getDate().isAfter(today))

if "... Stream expressions" is enabled, which is very irritating.

.stream() should be folded to something visible (or not at all, if placed alone on a line).

stokito commented 6 years ago

I tried and .stream() wasn't folded at all. Maybe this is kind of a bug then please give us an example which we can compile.

ewirch commented 6 years ago

I do not use AdvancedExpressionFolding any more. You can close the issue, if you can't reproduce it.

ciscorucinski commented 6 years ago

@ewirch You should close this issue yourself. We cannot, and the developer is not active on here right now.