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.

L. Swifter
  • 3,179
  • 28
  • 52

1 Answers1

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);

telkins
  • 10,440
  • 8
  • 52
  • 79