refactor: use simple forEach. (#2487)

This commit is contained in:
东方未白
2023-03-19 22:18:23 +08:00
committed by GitHub
parent 84f7ab8006
commit b028ce62e2
@@ -59,6 +59,6 @@ public class App {
list.add(factory.create(WeaponType.SPEAR));
list.add(factory.create(WeaponType.SWORD));
list.add(factory.create(WeaponType.BOW));
list.stream().forEach(weapon -> LOGGER.info("{}", weapon.toString()));
list.forEach(weapon -> LOGGER.info("{}", weapon.toString()));
}
}