-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Apply Nullability to syslog module #10278
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
Apply Nullability to syslog module #10278
Conversation
Signed-off-by: Tran Ngoc Nhan <[email protected]>
| private volatile AbstractServerConnectionFactory connectionFactory; | ||
|
|
||
| private volatile ApplicationEventPublisher applicationEventPublisher; | ||
| private volatile @Nullable ApplicationEventPublisher applicationEventPublisher; |
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.
This one also @SuppressWarnings("NullAway.Init").
Because it is initialized from the Application context callbacks.
| } | ||
|
|
||
| @Nullable | ||
| private Object getStructuredData(Reader r) { |
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.
Please, put @Nullable on the return type.
This is a contract exactly of the return type, not a method.
Signed-off-by: Tran Ngoc Nhan <[email protected]>
| * @return the timestamp. | ||
| */ | ||
| @Nullable | ||
| protected Object getTimestamp(Reader r) { |
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.
Thanks, but how have you missed to fix this one as well?
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.
My bad, I missed it.
Signed-off-by: Tran Ngoc Nhan <[email protected]>
No description provided.