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

Allow use of NON_DEFAULT for POJOs without default constructor #998

Closed
cowtowncoder opened this issue Nov 6, 2015 · 0 comments
Closed
Milestone

Comments

@cowtowncoder
Copy link
Member

Although it is necessary, ideally, to construct an instance of a POJO, to know what default values for properties are, current behavior of failing with exception in absence of zero-arg constructor is not optimal.
Instead it would make sense to just revert to "fundamental defaults", that is, nulls for objects and default values for primitives as excludable.

This change is mostly useful for using NON_DEFAULT as the global setting, where it is not possible to otherwise avoid possible exceptions for all types system handles. But it may also be slightly more useful than having to use NON_NULL or NON_EMPTY even when used directly on POJO.

@cowtowncoder cowtowncoder added this to the 2.7.0 milestone Nov 7, 2015
@cowtowncoder cowtowncoder changed the title (2.7) Allow use of NON_DEFAULT for POJOs without default constructor Allow use of NON_DEFAULT for POJOs without default constructor Nov 7, 2015
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

No branches or pull requests

1 participant