-
Notifications
You must be signed in to change notification settings - Fork 208
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
Support null values #31
Comments
That's not an error that happens with every object. |
Even if you advise not to use null values, the possibility to use them is always useful (and I personally have usecases where I don't want a default value for an object but rather a null value). To avoid the unnecessary null check, it could be possible to use two annotations, one for objects that are never null and one for objects that can be null (like "@icicle" and "@IcicleNullable" or so) Please tell me if you think this is something useful and if you plan to implement it. I've never worked with annotation processors, but I would look into it and extend the library with an extra annotation otherwise... Although, I probably need longer than you would :-) |
I have created a merge request which adds sort of support for this. Feel free to comment on the implementation there. |
Any update? |
If @Alexander-- is not interested anymore in his PR, I will fix it on the fly myself. Expect a snapshot version soon(ish). |
Pushed a |
I would suggest, that you generate code like following (example for Long, but should be used for all objects):
Saving:
Reading:
Otherwise, you library which is really very useful, can't be used with null values...
The text was updated successfully, but these errors were encountered: