is there a lint/inspection check that i'm missing ...
# announcements
a
is there a lint/inspection check that i'm missing so IntelliJ/Android studio warns me about a lambda that can be converted to a reference? I used to find it very useful when working with Java
k
There is an intention. There used to be an inspection but IIRC the team decided against a reference over lambda policy.
a
Oh, interesting. I've seen the intention indeed, but I though a reference would generally be better when the function is not inlined
k
There should be no difference. If the lambda is not capturing, it should be generated as a singleton.
👍 1