diff --git a/stdlib/ktSrc/JavaUtilMap.kt b/stdlib/ktSrc/JavaUtilMap.kt index 42cc5b156b7..cafdafc967d 100644 --- a/stdlib/ktSrc/JavaUtilMap.kt +++ b/stdlib/ktSrc/JavaUtilMap.kt @@ -1,7 +1,9 @@ package std.util import java.util.Map as JMap -import java.util.Map.Entry as JEntry + +// Temporary workaround: commenting out +//import java.util.Map.Entry as JEntry // Map APIs @@ -16,13 +18,16 @@ val JMap<*,*>.empty : Boolean /** Provides [] access to maps */ fun JMap.set(key : K, value : V) = this.put(key, value) + /** Returns the key of the entry */ -val JEntry.key : K - get() = getKey().sure() +// Temporary workaround: commenting out +//val JEntry.key : K +// get() = getKey().sure() /** Returns the value of the entry */ -val JEntry.value : V - get() = getValue().sure() +// Temporary workaround: commenting out +//val JEntry.value : V +// get() = getValue().sure() /** Returns the value for the given key or returns the result of the defaultValue function if there was no entry for the given key */ inline fun java.util.Map.getOrElse(key: K, defaultValue: ()-> V) : V {