You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Create a method with org.springframework.lang.NonNull annotation
Calls that method with arguments annotated with jakarta.validation.constraints.NotNull
A yellow line shows up on the method call highlighting: Null type safety: The expression of type 'String' needs unchecked conversion to conform to '@NonNull String'Java(16778128)
[Please attach a sample project reproducing the error]
Here: warnings-bug.zip
VS Code says it could be null, it may have null value.
Expected Result
No warnings at all, since it was annotated with NotNull;
Additional Informations
None
The text was updated successfully, but these errors were encountered:
RMCampos
changed the title
Null type safety not working with jakarta.vaidation.notNull
Null type safety not working with jakarta.validation.constraints.NotNull
Feb 16, 2024
[provide a description of the issue]
Environment
Steps To Reproduce
org.springframework.lang.NonNull
annotationjakarta.validation.constraints.NotNull
Null type safety: The expression of type 'String' needs unchecked conversion to conform to '@NonNull String'Java(16778128)
[Please attach a sample project reproducing the error]
Here:
warnings-bug.zip
Please attach logs
Here:
warning-logs.log
Current Result
VS Code says it could be null, it may have null value.
Expected Result
No warnings at all, since it was annotated with NotNull;
Additional Informations
None
The text was updated successfully, but these errors were encountered: