Skip to content

Fix deprecated warning in scala for java programer #2335

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

Merged
merged 1 commit into from
Feb 24, 2022
Merged

Conversation

yechs
Copy link
Contributor

@yechs yechs commented Feb 21, 2022

warning: method + in class Int is deprecated (since 2.13.0):
Adding a number and a String is deprecated. Use the string interpolation `s"$num$str"`
override def toString(): String = year + "-" + month + "-" + day

```
warning: method + in class Int is deprecated (since 2.13.0):
Adding a number and a String is deprecated. Use the string interpolation `s"$num$str"`
override def toString(): String = year + "-" + month + "-" + day
```
Copy link
Member

@Philippus Philippus left a comment

Choose a reason for hiding this comment

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

LGTM

@yechs
Copy link
Contributor Author

yechs commented Feb 24, 2022

The CI error seem to be the same as main branch and not relevant to the changes made in the PR.

If it is preferred, I can rebase onto main branch as soon as it is fixed in main.

@Philippus Philippus merged commit 0659ced into scala:main Feb 24, 2022
@Philippus
Copy link
Member

Not needed, thanks for the fix!

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