Statement lambda can be replaced with expression lambda’s warning
The full text of warning is as follows
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
The place of warning is here
recyclerViewAdapter.setOnItemClicListener ((v ,id) -> {
checkChoosed(id);
});
Just change it to this
recyclerViewAdapter.setOnItemClicListener ((v ,id) -> checkChoosed(id) );
OK. Now that the lamda expression is used, it can be simpler