-
Notifications
You must be signed in to change notification settings - Fork 33
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
Scala3 ftp support #170
Scala3 ftp support #170
Conversation
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.
Is the change from def
to val
necessary?
@@ -573,6 +573,6 @@ object Sftp extends SftpApi { | |||
*/ | |||
def create(customSshClient: SSHClient): SftpApi = | |||
new SftpApi { | |||
override val sshClient: SSHClient = customSshClient |
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.
Why is this a def
now? This could have a performance impact because it would get evaluated each time
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.
- more scala3 compiler issues
- the super class has
def sshClient(): SSHClient
- the
()
seem to be the reason that the override can't make it aval
customSshClient
is a constant as far as the anonymous classnew SftpApi {
is concerned- so there will be no recalculation on each call to
def sshClient(): SSHClient
- one option would be to make it
final def sshClient(): SSHClient
-- but with anonymous classes, you would assume everything is implied to be final anyway
- so there will be no recalculation on each call to
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.
Okay all good then, approving
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
* support scala3 in ftp connector * Update BaseSpec.scala
* support scala3 in ftp connector * Update BaseSpec.scala
* support scala3 in ftp connector * Update BaseSpec.scala
* support scala3 in ftp connector * Update BaseSpec.scala
* support scala3 in ftp connector * Update BaseSpec.scala
* support scala3 in ftp connector * Update BaseSpec.scala
* support scala3 in ftp connector * Update BaseSpec.scala
* support scala3 in ftp connector * Update BaseSpec.scala
* support scala3 in ftp connector * Update BaseSpec.scala
* support scala3 in ftp connector * Update BaseSpec.scala
* support scala3 in ftp connector * Update BaseSpec.scala
part of #126