Refactor ErrorReportingRunner#1285
Conversation
…once and for all in the constructor
Also, move the method below the callers to improve readability.
…rmance In fact, the causes are not actually used.
|
I don't have a strong opinion about f7e435a. There are some reasons for keeping the old version and some for using the new one. I agree with @marcphilipp on not merging 06f5a94. The other three commits are improvements that should definitely be merged. |
|
Also for 7474220 please don't move |
|
@alb-i986 Do you want to do the suggested changes or shall i take over? |
|
@marcphilipp ya sorry, I'll do as soon as I can. Cheers |
|
About 06f5a94: Apart from optimization, I think it also helps readability. About f7e435a:
@kcooney That's unfortunate, IMO. Descriptions should be immutable. There's no point in editing a Description after a Runner builds it and returns it, right?
If you mean that it's harder to do the code review, ya, I understand. I should have done the move in a different commit, sorry about that. |
I agree. We did look into making JUnit5 doesn't use As for the other changes in this pull, some of them are changing the code from one style to a different style; the benefits of those kinds of changes are somewhat subjective. I can see your point about 06f5a94 from a readability standpoint (though the performance benefits, if any, are small). I don't have a strong feeling about where private methods should be put before or after the method where they are called, but since two people already agreed on the current style (the author and the reviewer) I suggest we should leave |
|
Should be good to be squashed now. |
|
Thanks! 👍 |
Commits are separate just for the sake of reviewing; needs to be squashed before merging.
This is just a refactoring, no functional changes involved.