blob: 619c44b46d6e9e8aa385554f27ea4be0141b5aa1 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
|
import collection.{JavaConversions, mutable}
import JavaConversions._
import java.util.concurrent.ConcurrentHashMap
object Foo {
def buildCache2_9_simple[K <: AnyRef, V <: AnyRef]: mutable.ConcurrentMap[K, V] =
asScalaConcurrentMap(new ConcurrentHashMap())
def buildCache2_9_implicit[K <: AnyRef, V <: AnyRef]: mutable.ConcurrentMap[K, V] =
new ConcurrentHashMap[K, V]()
}
|