Skip to content

Remove enum reflection#843

Merged
baywet merged 10 commits intomicrosoft:mainfrom
andreaTP:rem-enum-reflection
Nov 22, 2023
Merged

Remove enum reflection#843
baywet merged 10 commits intomicrosoft:mainfrom
andreaTP:rem-enum-reflection

Conversation

@andreaTP
Copy link
Copy Markdown
Contributor

Proposal to fix #840

Copy link
Copy Markdown
Member

@baywet baywet left a comment

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 @baywet if you don't mind.

@baywet
Copy link
Copy Markdown
Member

baywet commented Nov 21, 2023

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

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

@andreaTP andreaTP force-pushed the rem-enum-reflection branch from 0c7122f to 2a045ff Compare November 21, 2023 15:09
@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.

andreaTP and others added 4 commits November 21, 2023 15:24
…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 andreaTP marked this pull request as draft November 21, 2023 17:19
@andreaTP andreaTP marked this pull request as ready for review November 21, 2023 17:29
Copy link
Copy Markdown
Member

@baywet baywet left a comment

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 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