-
Notifications
You must be signed in to change notification settings - Fork 45
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
@Nullable
annotation is missing from methods that may return null
#732
Comments
Yikes! Are you willing to file a PR to help us out? |
But shouldn't it inherit |
By type castting |
Looking at Spring Framework, the implementation class also declares So, I think it would be a good PR for @m15o to fix this. |
We have kotlin test codes using BraveTracer, but we get inaccurate warnings from the kotlin compiler.
For example, following code is warnde by the compiler with
Unnecessary safe call on a non-null receiver of type Span
message:This is because
io.micrometer.tracing.brave.bridge
package have@NonNullApi
, butBraveTracer.currentSpan()
do not have@Nullable
annotation.We are not sure, but other methods might also missing
@Nullable
annotation.The text was updated successfully, but these errors were encountered: