Reports redundant conversion method call (toInt
, toString
, and so on).
A conversion is redundant if the conversion doesn't change the type of the collection.
Example:
"Test".toString
Seq(1, 2).toSeq
After the quick-fix is applied:
"Test".toString
Seq(1, 2).toSeq