olabusayoT commented on code in PR #1422:
URL: https://github.com/apache/daffodil/pull/1422#discussion_r1945360050
##########
daffodil-propgen/src/main/scala/org/apache/daffodil/propGen/TunableGenerator.scala:
##########
@@ -352,12 +352,12 @@ class TunableEnumDefinition(
""".trim.stripMargin
private val scalaEnums = {
- val scalaEnumValues = allEnumerationValues.map { e => e.head.toUpper +
e.tail }
+ val scalaEnumValues = allEnumerationValues.map { e =>
s"${e.head.toUpper}${e.tail}" }
Review Comment:
Char + is conctatenation to a string is deprecated in 2.13, and string
interpolation was the recommended fix from Intellij, we can either do that or
convert the char to a string before using +. Though I prefer string
interpolation personally
https://docs.scala-lang.org/scala3/guides/migration/incompat-dropped-features.html#any2stringadd-conversion
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]