Skip to content

Each mapped stream must be closed after its contents have been placed… - #9949

Merged
niloc132 merged 2 commits into
gwtproject:mainfrom
treblereel:gwt_flatMapping_close_stream
Apr 17, 2024
Merged

niloc132 merged 2 commits into
gwtproject:mainfrom
treblereel:gwt_flatMapping_close_stream

Conversation

@treblereel

Copy link
Copy Markdown
Contributor

… downstream

@niloc132 niloc132 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for fixing/testing this! One checkstyle nit and we can merge?

downstream.supplier(),
(A a, T t) -> {
Stream<? extends U> stream = mapper.apply(t);
try(Stream<? extends U> stream = mapper.apply(t)) {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/home/runner/work/gwt/gwt/gwt/user/super/com/google/gwt/emul/java/util/stream/Collectors.java:180:11: error: 'try' is not followed by whitespace. (com.puppycrawl.tools.checkstyle.checks.whitespace.WhitespaceAroundCheck)

(reviewdog is no longer posting annotations, so I copy/paste)

@niloc132 niloc132 added this to the 2.12 milestone Apr 16, 2024
@niloc132
niloc132 merged commit b67c308 into gwtproject:main Apr 17, 2024
niloc132 added a commit to niloc132/gwt that referenced this pull request Apr 17, 2024
niloc132 added a commit that referenced this pull request Apr 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants