3 ms·
You should be using scala.collection.JavaConverters instead, as it makes the conversion explicit (by adding a ".asScala"/".asJava" method to collections). Impl
by nicktelford 9y ago
You should be using scala.collection.JavaConverters instead, as it makes the conversion explicit (by adding a ".asScala"/".asJava" method to collections).
Implicit conversions (i.e. where a type is silently converted to another type) is dangerous and can lead to very surprising problems.
- Cyph0n 9y agoWhoops, my bad about that. I was on mobile and forgot which of the two provides `.asScala`...