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

A few features #43

Open
wants to merge 7 commits into
base: master
Choose a base branch
from
Open

A few features #43

wants to merge 7 commits into from

Conversation

piegamesde
Copy link

  • Exclude annotation to exclude single fields
  • Documented the additional arguments of the serialization hooks
  • Expose method parameters as well

Let me know what you think of each of these (I just didn't want to make a separate PR for each tiny commit). They are all untested yet, I'll polish them later on if the general idea gets approved.

Like Gson's `Expose` but inversed.
The `AnnotationInspectorTest` works by counting how many `@Deprecated` the
`AnnotationInspector` will find on a test class. This does not work anymore
because in Java 9, the method `Object.finalize()` gets deprecated as well.

While there is the possibility to if/else around this using class header magic,
this will bite us again when reflective access to `Object` will be forbidden.
Instead, I simply replaced `@Deprecated` with `@ExposeMethodResult`.
Again, not tested yet
@piegamesde piegamesde marked this pull request as ready for review June 7, 2019 22:23
@julman99
Copy link
Owner

@piegamesde thanks a lot for your contribution. Something happened with my github settings and I stopped getting notifications for this project altogether, so I apologize for the delay. I like the ideas you submitted and will do some minor changes over the holidays, then merge.

Thanks again!

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