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

Java enum format #173

Draft
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

tuxBurner
Copy link

@tuxBurner tuxBurner commented Aug 31, 2018

Pull Request Checklist

Fixes

Doesn't have a ticket

Purpose

Often I have or use java enums in my projects and have to serialize or deserialize them in json context.
So i wrote a generic solution for doing this and want give it back to the comunity.

Background Context

Because i got sick of duplicating code :)

References

Are there any relevant issues / PRs / mailing lists discussions?

@lightbend-cla-validator

Hi @tuxBurner,

Thank you for your contribution! We really value the time you've taken to put this together.

We see that you have signed the Lightbend Contributors License Agreement before, however, the CLA has changed since you last signed it.
Please review the new CLA and sign it before we proceed with reviewing this pull request:

http://www.lightbend.com/contribute/cla

@tuxBurner
Copy link
Author

tuxBurner commented Aug 31, 2018

Hi @lightbend-cla-validator is signed the CLA

*
* @author Sebastian Hardt (s.hardt@micromata.de)
*/
object JavaEnumFormat {
Copy link
Member

Choose a reason for hiding this comment

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

With not with other default? (Take care about @author vs CLA)

Copy link
Author

Choose a reason for hiding this comment

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

Sorry about this will remove it :)

@@ -0,0 +1,6 @@
package play.api.libs.json

object JavaTestsEnumsFormat {
Copy link
Member

@cchantep cchantep Sep 20, 2018

Choose a reason for hiding this comment

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

Why separate?

Copy link
Author

Choose a reason for hiding this comment

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

What do you mean ?
I looked how the other enum tests are working

"EnumFormat" should {
import TestEnums.EnumWithCustomNames._

Copy link
Member

Choose a reason for hiding this comment

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

There is no need to have a separate file, whereas there are existings file for format tests

@cchantep cchantep changed the title Feature/java enum format Java enum format Sep 20, 2018
@SethTisue SethTisue marked this pull request as draft April 13, 2021 16:52
@SethTisue
Copy link
Member

is anyone interested in pursuing this further, or should we just close it for inactivity?

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

6 participants