Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Casillero - Mal uso de excepciones #3

Open
M-Picco opened this issue Jun 12, 2019 · 0 comments
Open

Casillero - Mal uso de excepciones #3

M-Picco opened this issue Jun 12, 2019 · 0 comments

Comments

@M-Picco
Copy link
Collaborator

M-Picco commented Jun 12, 2019

No tiene sentido que Casillero::contieneCasillero atrape una excepción que lanza un método del que tienen control (Casillero::buscarCasillero). Consideren refactorizar estos métodos para hacer un uso correcto de la excepción.

Sugerencia: usar Optional en lugar de null

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant