- Some APIs will conflict in Kotlin.
Example:
Long2ObjectMap.computeIfAbsent(long, V) <-> Long2ObjectMap.computeIfAbsent(java.lang.Long, V)
- Kotlin built-in extensions will make many classes degenerate to normal type.
Example:
Object2LongMap.forEach will produce entry with type java.lang.Object and java.lang.Long. And Map.put(K, V), etc.
Entry<K,V>.component1 / component2
One of the resolutions: PairExtensions.kt
I hope these stuffs could be library built-in ones, so Kotlin will give priority to existing member methods rather than extension functions
Example:
Example:
Object2LongMap.forEachwill produce entry with typejava.lang.Objectandjava.lang.Long. AndMap.put(K, V), etc.Entry<K,V>.component1/component2One of the resolutions: PairExtensions.kt
I hope these stuffs could be library built-in ones, so Kotlin will give priority to existing member methods rather than extension functions