iluwatar / java-design-patterns

Design patterns implemented in Java
https://java-design-patterns.com
Other
88.25k stars 26.19k forks source link

Refactor Layered Architecture pattern #2936

Closed iluwatar closed 2 weeks ago

iluwatar commented 1 month ago

A couple of specific refactorings are needed for Layered Architecture code example.

Optional is primarily intended for use as a method return type where there is a clear need to represent "no result," and where using null is likely to cause errors.

Acceptance criteria

romannimets commented 1 month ago

Hey! I would like to contribute to this issue