Statement lambda can be replaced with expression lambda

created at 06-25-2021 views: 16

description

Statement lambda can be replaced with expression lambda less… (Ctrl+F1)
This inspection reports lambda expressions with code block bodies when expression-style bodies can be us

where the warning occurs:

recyclerViewAdapter.setOnItemClicListener((v ,id) -> {
checkChoosed(id);
});

modify it to this:

recyclerViewAdapter.setOnItemClicListener((v ,id) -> checkChoosed(id) );

then it will be Ok

created at:06-25-2021
edited at: 06-25-2021: