79137808

Date: 2024-10-29 15:10:26
Score: 2
Natty:
Report link

No point in collecting to a list when it is not been used. Better to remove "collect(Collectors.toList()" and change from map to foreach

list.stream().foreach(event -> { ..... })

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Manju