Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
Adding okhttp autoinstrumentation #64
Adding okhttp autoinstrumentation #64
Changes from 30 commits
69270e6
4534dec
4be77cb
107d3ec
e1e2214
ba8b966
ffb3d61
51121f7
3c47996
fb23ca4
ab229ce
a065e72
9e40596
ec62fbd
e35ce51
71ffde6
077e186
deb0ff6
bf274fa
82a159f
3e51fa0
36d9a4d
b778cb0
128cf65
65944e1
eadd418
dd9f4cb
7b2cdff
78d9954
107a1d6
96c09ee
4a5b9f0
4065e40
3a88f08
cd99ea9
79a184c
fe77d9f
d97a8c5
df1e71a
afd74f3
2defc86
d391489
3295024
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
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.
remove the
@Nonnull
everywhere. We have a wide assumption that parameters are non-null by default unless a@Nullable
is present, and nullaway will catch those.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.
Got it, I wasn't aware of it, I'll make the changes
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.
Just to confirm something though, after checking it a bit further I remembered that these methods are supposed to be called by our users, I was thinking that if they're not using nullaway in their projects, then this annotation could let their IDEs know that they shouldn't pass nulls here... Do you think we should still remove them for public functions? We might also want to validate null params now that I think about it in case our users decide to pass null regardless of any warnings, though I'm not sure if that'd be too much.
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.
you can apply
@ParametersAreNonnullByDefault
similar to https://github.com/open-telemetry/opentelemetry-java/blob/9a931556fb05dadc1419736d3fecaec96af5f18c/api/all/src/main/java/io/opentelemetry/api/package-info.java#L12-L15There 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.
Cool! I've applied the changes, thanks