https://kotlinlang.org logo
#android
Title
# android
j

jw

09/15/2017, 7:59 PM
also true of 1.1.3-2 which a little birdy told me is the version you're using
i

ion

09/15/2017, 8:22 PM
Haha that birdy is correct, we are using 1.1.3-2
This is the class that contains that function in the library
Copy code
kotlin-stdlib-1.1.3-2.jar!/kotlin/collections/collections.kotlin_builtins
j

jw

09/15/2017, 8:47 PM
Hmm yeah I see it in there although I don't know what the binary around it indicates
I would recommend filing an issue so the JetBrains people can get involved.
i

ion

09/15/2017, 8:53 PM
Ok I will.
But do you know why Android Studio or lint isn't reporting a warning when using this method ?
j

jw

09/15/2017, 8:56 PM
Lint doesn't check bytecode and this method isn't annotated with anything lint would recognize as requiring a certain API level.
i

ion

09/15/2017, 8:56 PM
Only the javadoc contains
* @since JDK 1.8
e

ebtokyo

09/20/2017, 11:13 PM
@ion if you opened a ticket do you have the number ? We have the same issue and not sure what to do except asking developer not to use
getOrDefault
.
i

ion

09/20/2017, 11:34 PM
e

ebtokyo

09/20/2017, 11:35 PM
thanks !