Project

General

Profile

Actions

Architecture #11968

closed

Architecture #11955: Remove most scala compilation warning

Remove "N-uple adaptation" warning

Added by François ARMAND over 6 years ago. Updated about 6 years ago.

Status:
Released
Priority:
N/A
Category:
Architecture - Code maintenance
Target version:
Effort required:
Name check:
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.


Subtasks 1 (0 open1 closed)

Architecture #11975: Remove "N-uple adaptation" warning (missing one)ReleasedVincent MEMBRÉActions
Actions

Also available in: Atom PDF