https://kotlinlang.org logo
Title
m

mingkangpan

01/02/2018, 9:39 AM
guys why doesn't lint apply when using
map.getOrDefault()
which is only supported if JDK 8 is used? also here is an article about that: https://proandroiddev.com/kotlin-youve-broken-my-heart-ea0e8f991b70
g

gildor

01/02/2018, 9:42 AM
Probably because lint doesn’t know anything about Kotlin methods that target Java 8. You should create an issue for Android Lint
m

mingkangpan

01/02/2018, 9:43 AM
yeah that sucks... so I will only realize it if app crashes 😕
l

lupajz

01/02/2018, 9:44 AM
Well for me to realise this IDE always helps as the color of function is different and I can’t do argument destruction in this case.
m

mingkangpan

01/02/2018, 9:46 AM
but I don't even see any color or warning sign, IDE doesn't realise I am using JDK 8 feature, that's the point lint doesn't warn if you use
@PlatformDependent
methods..