-
Notifications
You must be signed in to change notification settings - Fork 56
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
feat: Use and recommend org.jspecify.annotations.NonNull instead of a custom one #3046
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #3046 +/- ##
=======================================
Coverage 92.57% 92.57%
=======================================
Files 85 85
Lines 3166 3166
Branches 776 776
=======================================
Hits 2931 2931
Misses 183 183
Partials 52 52
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
e9c6a09
to
1bc6cb2
Compare
1bc6cb2
to
833a1c8
Compare
I'm not in a position to review this PR, but I want to say I think this is a good move. Also FYI: spring-projects/spring-framework#28797 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also see #2612.
...lugin-nonnull/src/main/java/com/vaadin/hilla/parser/plugins/nonnull/NonnullPluginConfig.java
Show resolved
Hide resolved
For #2612, we should also add |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Blocked for the following question:
packages/java/endpoint/src/test/java/com/vaadin/hilla/ExplicitNullableTypeCheckerTest.java
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think that the deprecation of our annotations should be discussed: is it necessary to show lots of deprecations in user projects, given that the annotation are equivalent?
The point of deprecation is that people should avoid using the Hilla annotations and use the jspecify ones. It also communicates that they will disappear in the future. I think that is true |
For new users, it is beneficial that they don't start using the old annotations. Existing users have a very easy |
f289c99
to
a2ae0e2
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
|
This ticket/PR has been released with Hilla 24.7.0.alpha4 and is also targeting the upcoming stable 24.7.0 version. |
Closes #2612.