Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
ivagonz-practica4
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ivagonz
ivagonz-practica4
Commits
1d1fa1d2
There was a problem fetching the pipeline summary.
Commit
1d1fa1d2
authored
Jan 11, 2018
by
Ivan Gonzalez
Browse files
Options
Downloads
Patches
Plain Diff
Solucionado code smell
parent
572d9bad
No related branches found
No related tags found
1 merge request
!3
Develop
Pipeline
#
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/main/java/inf/uva/es/ivagonz/practica4/Persona.java
+1
-1
1 addition, 1 deletion
src/main/java/inf/uva/es/ivagonz/practica4/Persona.java
with
1 addition
and
1 deletion
src/main/java/inf/uva/es/ivagonz/practica4/Persona.java
+
1
−
1
View file @
1d1fa1d2
...
@@ -43,7 +43,7 @@ public class Persona {
...
@@ -43,7 +43,7 @@ public class Persona {
public
Persona
(
String
nombre
,
int
id
,
List
<
Persona
>
amigos
,
List
<
Persona
>
conocidos
)
{
public
Persona
(
String
nombre
,
int
id
,
List
<
Persona
>
amigos
,
List
<
Persona
>
conocidos
)
{
if
(
nombre
==
null
)
if
(
nombre
==
null
)
throw
new
IllegalArgumentException
(
"El nombre no puede ser null."
);
throw
new
IllegalArgumentException
(
"El nombre no puede ser null."
);
if
(
nombre
.
equals
(
""
))
if
(
""
.
equals
(
nombre
))
throw
new
IllegalArgumentException
(
"El nombre no puede ser cadena vacía."
);
throw
new
IllegalArgumentException
(
"El nombre no puede ser cadena vacía."
);
if
(
id
<
0
)
if
(
id
<
0
)
throw
new
IllegalArgumentException
(
"El identificador de la Persona no puede ser negativo."
);
throw
new
IllegalArgumentException
(
"El identificador de la Persona no puede ser negativo."
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment