-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Apply NullAbility to sftp module #10292
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 sftp module #10292
Conversation
Has anything been updated regarding the PR build?
|
Yeah... Looks like |
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.
Great work!
Let's see if my review valid!
Thank you!
.../src/main/java/org/springframework/integration/sftp/inbound/SftpInboundFileSynchronizer.java
Outdated
Show resolved
Hide resolved
...p/src/main/java/org/springframework/integration/sftp/inbound/SftpStreamingMessageSource.java
Outdated
Show resolved
Hide resolved
...tion-sftp/src/main/java/org/springframework/integration/sftp/server/ApacheMinaSftpEvent.java
Show resolved
Hide resolved
...on-sftp/src/main/java/org/springframework/integration/sftp/server/DirectoryCreatedEvent.java
Outdated
Show resolved
Hide resolved
...gration-sftp/src/main/java/org/springframework/integration/sftp/server/FileWrittenEvent.java
Outdated
Show resolved
Hide resolved
...tegration-sftp/src/main/java/org/springframework/integration/sftp/server/PathMovedEvent.java
Outdated
Show resolved
Hide resolved
...gration-sftp/src/main/java/org/springframework/integration/sftp/server/PathRemovedEvent.java
Outdated
Show resolved
Hide resolved
...-sftp/src/main/java/org/springframework/integration/sftp/session/SftpRemoteFileTemplate.java
Outdated
Show resolved
Hide resolved
...integration-sftp/src/main/java/org/springframework/integration/sftp/session/SftpSession.java
Outdated
Show resolved
Hide resolved
The latest Please, consider to rebase your branch respectively. |
Related to: spring-projects#10083 Signed-off-by: Tran Ngoc Nhan <[email protected]>
Signed-off-by: Tran Ngoc Nhan <[email protected]>
2177aa6
to
61cce7a
Compare
Signed-off-by: Tran Ngoc Nhan <[email protected]>
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.
LGTM.
as long as PR build is green, I'll merge it.
Thank you!
Was nice way to finish the week 😄
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.
Looks like SMB module has been affected by your change as well:
SmbTests > testSmbInboundStreamFlow() FAILED
java.lang.AssertionError at SmbTests.java:148
Well, I think it is probably better to fix those modules as well. |
Signed-off-by: Tran Ngoc Nhan <[email protected]>
@@ -58,13 +58,13 @@ public SftpRemoteFileTemplate(SessionFactory<SftpClient.DirEntry> sessionFactory | |||
super(sessionFactory); | |||
} | |||
|
|||
@SuppressWarnings("unchecked") | |||
@SuppressWarnings({"unchecked", "NullAway"}) // Overridden method does not define nullability |
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.
No. Bring back, please, the fix we have just had in super class.
And fix SMB one respectively.
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.
I haven't done anything and the test's green 👀
Signed-off-by: Tran Ngoc Nhan <[email protected]>
Related to: #10083