Actions
Architecture #11968
closedArchitecture #11955: Remove most scala compilation warning
Remove "N-uple adaptation" warning
Status:
Released
Priority:
N/A
Assignee:
Category:
Architecture - Code maintenance
Target version:
Fix check:
Regression:
Description
Scala is deprecating the use of adaptation from n-args to tuple, so for example you need to use:
val x: Option[(Int, Int)] = Some((1,2))
This is to remove some ambiguities that can lead to non-expected result in some case.
I'm not sure I really like the result. In some caes, the alternative tuple notation works very well, but not always:
... myLiftXmlElement % (("class", "error")) // bof ... myLiftXmlElement % ("class" -> "error")) // nice!
But in all case, we should have the smallest number of warnings (ideally, 0) with -Xlint option enabled.
Actions