Skip to content

Remove enum reflection - #843

Merged
Vincent Biret (baywet) merged 10 commits into
microsoft:mainfrom
andreaTP:rem-enum-reflection
Nov 22, 2023
Merged

Vincent Biret (baywet) merged 10 commits into
microsoft:mainfrom
andreaTP:rem-enum-reflection

Conversation

@andreaTP

Copy link
Copy Markdown
Contributor

Proposal to fix #840

@baywet Vincent Biret (baywet) left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thanks for taking this on. I think we should bump the minor and release the packages as soon as the generation changes are in.

@andreaTP

Copy link
Copy Markdown
Contributor Author

I'm converting from Lambdas to plain classes to achieve compatibility, leave this on me Vincent Biret (@baywet) if you don't mind.

@baywet

Copy link
Copy Markdown
Member

I'm converting from Lambdas to plain classes to achieve compatibility, leave this on me Vincent Biret (@baywet) if you don't mind.

do you mean using this syntax instead of a lambda EnumName::forValue ?

@andreaTP

Copy link
Copy Markdown
Contributor Author

I done the changes to make the linter happy and expanded the functional interface into a real interface, let me know if this looks good.

Comment thread CHANGELOG.md
…alization/ValuedEnumParser.java

Co-authored-by: Vincent Biret <vibiret@microsoft.com>
@andreaTP

Copy link
Copy Markdown
Contributor Author

should be good for a final review now 👍

@andreaTP

Copy link
Copy Markdown
Contributor Author

maybe not, let me double-check, sorry for the noise.

@andreaTP
Andrea Peruffo (andreaTP) marked this pull request as draft November 21, 2023 17:19
@andreaTP
Andrea Peruffo (andreaTP) marked this pull request as ready for review November 21, 2023 17:29

@baywet Vincent Biret (baywet) left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thanks for making the changes!

@baywet
Vincent Biret (baywet) merged commit 1beb9ae into microsoft:main Nov 22, 2023
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.

Avoid usage of reflection API in Enum deserialization

2 participants