9

I use retrolambda in my project, it works great. but today when i used it, Android Studio give me a tip:

enter image description here

I haven't seen this before, how I need to modify the code in order to meet this tip.

4

1 回答 1

15

The return statement is not needed for single-line expressions, so it's telling you that it's safe to delete (hence why return is grayed out). For example, you can refactor that to:

player.setOnErrorListner((mp, what, extra) -> true);

于 2016-03-03T02:29:21.100 回答