-
Notifications
You must be signed in to change notification settings - Fork 43
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
Address compile warnings in generated Kotlin code #205
Conversation
Any feedback on this? (@Leland-Takamine?) |
Hi @larryng - can you please show a diff of the changes to the generated code from before and after your changes? |
@Leland-Takamine I don't really have the time to offer a total example, but here's a redacted snippet from our codebase: Added to generated ScopeImpl classes:+@Suppress("REDUNDANT_PROJECTION")
@ScopeImpl( Initialize to
|
Bump @Leland-Takamine |
Hey @larryng - The use of |
@Leland-Takamine Ah, I was wondering why it was like that. No, it's not necessary and we can just suppress it instead. |
@Leland-Takamine Updated. New generated code simply has:
added to |
Hate to bump again, but it's been awhile @Leland-Takamine |
Looks good - @tyvsmith Would you be able to push a release for this? |
@larryng The release has been pushed and should be available within the next few hours. |
Description:
Generated Kotlin code triggers two compiler warnings:
UNCHECKED_CAST
andREDUNDANT_PROJECTION
. WithallWarningsAsErrors
enabled, we're unable to upgrade to recent versions of Motif. This PR addresses the two warnings by suppressing them.Related issue(s):
None AFAICT.