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
kirillrakhman
09/05/2017, 2:54 PM
There is an intention. There used to be an inspection but IIRC the team decided against a reference over lambda policy.
a
aballano
09/05/2017, 4:13 PM
Oh, interesting. I've seen the intention indeed, but I though a reference would generally be better when the function is not inlined
k
kirillrakhman
09/06/2017, 10:11 AM
There should be no difference. If the lambda is not capturing, it should be generated as a singleton.