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

Reporte malos olores 1 #3

Open
BryanEstrada003 opened this issue Jan 9, 2023 · 0 comments
Open

Reporte malos olores 1 #3

BryanEstrada003 opened this issue Jan 9, 2023 · 0 comments

Comments

@BryanEstrada003
Copy link

Dentro de la clase AdminPanel.java en el método “actionPerformed(ActionEvent e)”, existe un code smell “Long Method” debido a que el método contiene varias líneas de código. Se puede solucionar esto aplicando Extract Method, Simpliflying Conditional Expression y Consolidate Duplicate Conditional Fragments. El beneficio de realizar con estas técnicas de refactorizaciones es que ahora es fácil de entender, cada método es responsable de realizar una acción y estos llaman a otros métodos.
image
image
image

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

No branches or pull requests

1 participant