79466123

Date: 2025-02-25 10:13:41
Score: 1
Natty:
Report link

If you want to stick with the stream API, you should refactor your code.

List<Ctry> result = new ArrayList<Ctry>();
activeRow.stream()
        .map(obj -> this.findCtry(obj, true))
        .filter(ctrys -> !ctrys.isEmpty())
        .findFirst()
        .ifPresent(result::addAll);
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Aimene Nouri