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 new Serialization Feature to avoid writing Timestamp fractions #2630

Closed
wants to merge 3 commits into from

Conversation

sashikanthr
Copy link

This feature is added to fix FasterXML/jackson-modules-java8#116

jadlers referenced this pull request in sashikanthr/jackson-modules-java8 Mar 2, 2020
* test: add initial test case

* fix: fix problems in test case

for issue #1

* feat: add test cases for timestamps part and nanoseconds part

related to issue #1

* create a false test cases

#1

* Use flag for diabling fraction

* Use flag for diabling fraction

* Added the flag for DurationSerializer classes

* Removed test cases that are not relevant to the added Serialization Feature

* Only keep requirement specific tests

Some tests were set up to get an understanding of the code. They should
not be kept and included in the pull request

Co-authored-by: Nagisa <fuchang.2000@gmail.com>
Co-authored-by: Jacob Adlers <jacob.adlers@gmail.com>
* fraction part or not.
*<p>
* Note: if enabled the feature {@link
* #WRITE_DATE_TIMESTAMPS_AS_NANOSECONDS} is ignored in {@link
Copy link
Member

Choose a reason for hiding this comment

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

I think some mention of the new flag should be part of the javadoc for WRITE_TIMESTAMPS_AS_NANOSECONDS..

@cowtowncoder cowtowncoder changed the title Add new Serialization Feature to avoid fractions Add new Serialization Feature to avoid writeing Timestamp fractions Jul 1, 2024
@cowtowncoder cowtowncoder changed the title Add new Serialization Feature to avoid writeing Timestamp fractions Add new Serialization Feature to avoid writing Timestamp fractions Jul 1, 2024
@cowtowncoder
Copy link
Member

No current plans for this, closing.

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.

Allow Instant to be serialized as epochSecond without the fraction part
4 participants