-
Notifications
You must be signed in to change notification settings - Fork 456
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
org.springframework.lang.NonNullApi not supported #3431
org.springframework.lang.NonNullApi not supported #3431
Comments
Can you please provide a sample project? Without knowing anything about the NonNullApi, I'd infer from the name it has a specific behaviour, different from NonNull, and JDT doesn't know anything about that specific behaviour. |
@martinlippert is this something STS should take care of? |
@fbricon the project is accessible only on company's intranet. After posting this issue, I tried IDEA and found it worked well. |
Sorry to forget telling that I had JDK17 installed and used. |
@snjeza It's working. Thanks. |
Hey @fbricon, not sure what exactly the Spring Tools could/should do here. Do you have anything concrete in mind? |
@martinlippert nothing, now that @snjeza found this can be covered by |
Annotation
org.springframework.lang.NonNullApi
is not supported for null analysis.With the method parameter annotated by
org.springframework.lang.NonNull
directly, I got a warning said thaNull type mismatch: required .... but the provided is null
. It's cool.But with
in the user's settings.json, and a
package-info.java
annotated byorg.springframework.lang.NonNullApi
, I got nothing.When I placed
"org.springframework.lang.NonNullApi"
at the first line in the configuration json like this, I also got nothing about null analysis, but an error from
package-info.java
file sayingThe nullness annotation 'NonNullApi' is not applicable at this location
instead.The text was updated successfully, but these errors were encountered: