I have this code in intellij:
return collection.stream().anyMatch(annotation -> method.isAnnotationPresent(annotation));
And the compiler tells me that "method.isAnnotationPresent(annotation)" can be replaced with method reference, and I can't figure out how to do it, because it has an argument. Does anyone know how to make that?
Thank you!
Aucun commentaire:
Enregistrer un commentaire