Skip to content
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

Missing @SerializedName annotation on integer-based enums #253

Merged
merged 1 commit into from
Nov 14, 2019

Conversation

RicoYao
Copy link
Contributor

@RicoYao RicoYao commented Nov 14, 2019

No description provided.

@@ -379,7 +379,7 @@ public struct JavaIR {
case let .integer(values):
let names = values
.map { ($0.description, $0.defaultValue) }
.map { "\($0.0.uppercased())(\($0.1))" }.joined(separator: ", \n")
.map { "@\(JavaAnnotation.serializedName(name: "\($0.1)").rendered) \($0.0.uppercased())(\($0.1))" }.joined(separator: ", \n")
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it may have just been an oversight that the annotation wasn't added here. On line 400, we have this annotation for string-based enums.

@RicoYao RicoYao merged commit 9e5c65f into pinterest:master Nov 14, 2019
jparise added a commit to jparise/plank that referenced this pull request Jan 3, 2020
This was accidentally introduced as part of pinterest#253.
jparise added a commit that referenced this pull request Jan 3, 2020
This was accidentally introduced as part of #253.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants