Skip to content
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

Merged
merged 2 commits into from
Jun 11, 2023
Merged

Scala3 ftp support #170

merged 2 commits into from
Jun 11, 2023

Conversation

pjfanning
Copy link
Contributor

part of #126

Copy link
Contributor

@mdedetrich mdedetrich left a 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
Copy link
Contributor

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

Copy link
Contributor Author

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 a val
  • customSshClient is a constant as far as the anonymous class new 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

Copy link
Contributor

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

Copy link
Contributor

@mdedetrich mdedetrich left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@pjfanning pjfanning merged commit 00fbf2e into apache:scala3 Jun 11, 2023
@pjfanning pjfanning deleted the scala3-ftp branch June 11, 2023 13:24
pjfanning added a commit that referenced this pull request Jun 26, 2023
* support scala3 in ftp connector

* Update BaseSpec.scala
pjfanning added a commit that referenced this pull request Jun 26, 2023
* support scala3 in ftp connector

* Update BaseSpec.scala
pjfanning added a commit that referenced this pull request Jun 27, 2023
* support scala3 in ftp connector

* Update BaseSpec.scala
pjfanning added a commit that referenced this pull request Jul 14, 2023
* support scala3 in ftp connector

* Update BaseSpec.scala
pjfanning added a commit that referenced this pull request Aug 3, 2023
* support scala3 in ftp connector

* Update BaseSpec.scala
pjfanning added a commit that referenced this pull request Aug 6, 2023
* support scala3 in ftp connector

* Update BaseSpec.scala
pjfanning added a commit that referenced this pull request Aug 6, 2023
* support scala3 in ftp connector

* Update BaseSpec.scala
pjfanning added a commit that referenced this pull request Aug 11, 2023
* support scala3 in ftp connector

* Update BaseSpec.scala
mdedetrich pushed a commit to mdedetrich/pekko-connectors that referenced this pull request Aug 15, 2023
* support scala3 in ftp connector

* Update BaseSpec.scala
pjfanning added a commit that referenced this pull request Aug 17, 2023
* support scala3 in ftp connector

* Update BaseSpec.scala
pjfanning added a commit that referenced this pull request Aug 19, 2023
* support scala3 in ftp connector

* Update BaseSpec.scala
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants