-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Fix KotlinWhenStringFilter and StringSwitchFilter #1940
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
| } | ||
| } | ||
|
|
||
| private static void executedWithSameHashCodeAsFirstCase(Object s) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I was a bit confused by the method name until I saw the call site.
executedWithSameHashCodeAsFirstCase("\0a");
As is is only called here the parameter can be removed? To avoid that the compiler handles the constant directly we can introduce Stub.identity(String).
| } // assertEmpty() | ||
| } // assertFullyCovered() | ||
|
|
||
| private fun executedWithSameHashCodeAsFirstCase(s: String) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same comment as above: If we only have one use case we don't need a parameter.
|
@Godin As the original issue is Kotlin specific: Can we add a validation test for Kotlin? |
7c54377 to
3288b9c
Compare
Fixes #1938
Closes #1939