guys why doesn't lint apply when using `map.getOrD...
# android
m
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
Probably because lint doesn’t know anything about Kotlin methods that target Java 8. You should create an issue for Android Lint
m
yeah that sucks... so I will only realize it if app crashes 😕
l
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
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..