GeezerVison is showing github.com — Reduce stack utilization of TestTemplateTestDescriptor::execute by amaembo · Pull Request #4024 · junit-team/junit-framework
Conversation
amaembo
commented
Sep 25, 2024
•
edited by marcphilipp
Loading
Uh oh!
There was an error while loading. Please reload this page.
Overview
Fixes issue #4020
I hereby agree to the terms of the JUnit Contributor License Agreement.
Definition of Done
- There are no TODOs left in the code
- Method preconditions are checked and documented in the method's Javadoc -- no method declarations changed
- Coding conventions (e.g. for logging) have been followed
- Change is covered by automated tests including corner cases, errors, and exception handling -- refactoring only change, I believe no new tests are necessary
- Public API has Javadoc and
@API annotations -- no public APIs changed
- Change is documented in the User Guide and Release Notes -- should I write something there, or the change is minor and doesn't worth mentioning?
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
marcphilipp and sormuras reacted with thumbs up emoji
|
Not sure about formatting. I've formatted the changed fragment using spotlessApply, even though it's inside the formatter:off section. Probably it worth removing formatter:off.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Not sure about formatting. I've formatted the changed fragment using spotlessApply, even though it's inside the formatter:off section. Probably it worth removing formatter:off.
I think so too. From what I've observed of Spotless over the years, users like JUnit 5 use formatter:(off|on) because the bundled Eclipse formatter can't handle fluent chains like streams very well, so the comments are used as an escape hatch. Thus they should be safe to remove, if the team is happy of course. :)
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|
Agreed, let's remove them
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
marcphilipp
changed the title
Reduce stack utilization by getting rid of outer Stream API call in TestTemplateTestDescriptor::execute
Reduce stack utilization of TestTemplateTestDescriptor::execute
Sep 25, 2024
amaembo reacted with thumbs up emoji
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
This was referenced Feb 24, 2025
This was referenced Mar 17, 2025
This was referenced Apr 14, 2025
Uh oh!
There was an error while loading. Please reload this page.
Milestone
No milestone
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
|