I use retrolambda in my project, it works great. but today when i used it, Android Studio give me a tip:
I haven't seen this before, how I need to modify the code in order to meet this tip.
I use retrolambda in my project, it works great. but today when i used it, Android Studio give me a tip:
I haven't seen this before, how I need to modify the code in order to meet this tip.
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);
© 2022 - 2024 — McMap. All rights reserved.