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

use string interpolation. fix warnings #615

Merged
merged 1 commit into from
Oct 4, 2023

Conversation

xuwei-k
Copy link
Contributor

@xuwei-k xuwei-k commented Oct 4, 2023

[warn] scalaxb/cli/src/main/scala/scalaxb/compiler/xsd/ContextProcessor.scala:228:47: method + in class Char is deprecated (since 2.13.0): Adding a number and a String is deprecated. Use the string interpolation `s"$num$str"`
[warn]       .map {str => if (numbers(str.head)) 'n' + str else str}  // Package name can't start with a number
[warn]                                               ^
[warn] scalaxb/cli/src/main/scala/scalaxb/compiler/xsd/Lookup.scala:164:54: method any2stringadd in object Predef is deprecated (since 2.13.0): Implicit injection of + is deprecated. Convert to String to call +
[warn]     if (!context.typeNames.contains(decl)) sys.error(pkg + ": Type name not found: " + decl.toString)
[warn]                                                      ^
[warn] scalaxb/cli/src/main/scala/scalaxb/compiler/xsd/Lookup.scala:186:17: method any2stringadd in object Predef is deprecated (since 2.13.0): Implicit injection of + is deprecated. Convert to String to call +
[warn]       sys.error(pkg + ": Type name not found: " + enum.toString)
[warn]                 ^

Copy link
Owner

@eed3si9n eed3si9n left a comment

Choose a reason for hiding this comment

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

Thanks!

@eed3si9n eed3si9n merged commit 346e4e7 into eed3si9n:develop Oct 4, 2023
1 check passed
@xuwei-k xuwei-k deleted the interpolation branch October 5, 2023 00:30
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