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

Add METHOD target for use with AutoValue's abstract property methods #688

Merged
merged 1 commit into from
Aug 14, 2015

Conversation

MichaelEvans
Copy link
Contributor

Closes #687

swankjesse added a commit that referenced this pull request Aug 14, 2015
Add METHOD target for use with AutoValue's abstract property methods
@swankjesse swankjesse merged commit 6cd5ee6 into google:master Aug 14, 2015
@@ -64,7 +64,7 @@
* @author Joel Leitch
*/
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.FIELD)
@Target({ElementType.FIELD, ElementType.METHOD})
Copy link
Collaborator

Choose a reason for hiding this comment

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

@swankjesse Do we really want to do this?

If we allow SerializedName on methods, we should actually support it in full.
We Don't and we seem to have no plans to support it either. So, why open it up?

@swankjesse
Copy link
Collaborator

It's a pragmatic solution to the problem AutoValue users have. I don't think it obligates us to doing getters and setters, and I'm quite against doing that!

@swankjesse
Copy link
Collaborator

Details are here: #687

@inder123
Copy link
Collaborator

Ok

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.

None yet

3 participants