Skip to content
Snippets Groups Projects
Commit 398720b8 authored by ivagonz's avatar ivagonz
Browse files

Solucionado code smell

parent 5e2b3f44
Branches
No related tags found
1 merge request!3Develop
Pipeline #
......@@ -95,7 +95,7 @@ public class ColaDeAmigos {
*/
public boolean containsPersona(int id) {
if (id < 0)
throw new IllegalArgumentException("El id de la Persona a buscar debe ser positivo.");
throw new IllegalArgumentException("El id de la Persona a buscar debe ser un número positivo.");
for (int i = 0; i < getCola().size(); i++) {
if (getCola().get(i).getId() == id)
return true;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment