Skip to content

Comments

avoid null value coercion when annotated with @DefaultNull#1

Open
meztihn wants to merge 1 commit intojohn9x:masterfrom
meztihn:master
Open

avoid null value coercion when annotated with @DefaultNull#1
meztihn wants to merge 1 commit intojohn9x:masterfrom
meztihn:master

Conversation

@meztihn
Copy link

@meztihn meztihn commented Dec 10, 2024

That coercion lead to unexpected behavior if property was of org.joda.DateTime type: you expect it to be null if not set, but it actually was calling new DateTime(null) (which is equivalent to DateTime.now()).

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.

1 participant