Skip to content

Make StringSwitchEcjFilter consistent with KotlinWhenStringFilter#1099

Merged
Godin merged 2 commits intojacoco:masterfrom
T45K:make_consistent
Apr 5, 2021
Merged

Make StringSwitchEcjFilter consistent with KotlinWhenStringFilter#1099
Godin merged 2 commits intojacoco:masterfrom
T45K:make_consistent

Conversation

@T45K
Copy link
Contributor

@T45K T45K commented Oct 2, 2020

In #942, if statement was added before variable replacements declaration (here), but in #944, similar modification of #942, if statement was added after replacements declaration (here).
This PR moved if statement in StringSwitchEcjFilter#match for consistency and improving performance (unused variable replacement will not be declared).

@Godin Godin self-requested a review October 15, 2020 09:04
@Godin Godin changed the title Make consistent Make StringSwitchEcjFilter consistent with KotlinWhenStringFilter Apr 5, 2021
@Godin Godin added this to the 0.8.7 milestone Apr 5, 2021
@Godin Godin merged commit 9a88237 into jacoco:master Apr 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

3 participants