I migrate some scala code from 2.12 to 2.13 and I have the following code
def getMetrics(): java.util.Map[String, Double] ={
transformers.map{
case transformer => transformer match{
case t: EvaluationTransformFunction => t.getMetric.asJava
}
}.flatten.toMap.asJava
}
that produces the error
error: No implicit view available from java.util.Map[String,Double] => scala.collection.IterableOnce[B].
[ERROR] }.flatten.toMap.asJava
[ERROR] ^
can you explain what is the error about?