mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-22 15:25:49 +00:00
Fixed SonarQube code smell for field name
A field should not duplicate the name of its containing class, [RSPEC-1700](https://rules.sonarsource.com/java/RSPEC-1700)
This commit is contained in:
parent
0fab9fe4d7
commit
1c0139a39c
1 changed files with 4 additions and 4 deletions
|
@ -30,14 +30,14 @@ import javax.xml.bind.annotation.XmlRootElement;
|
||||||
@XmlRootElement
|
@XmlRootElement
|
||||||
public class Vets {
|
public class Vets {
|
||||||
|
|
||||||
private List<Vet> vets;
|
private List<Vet> vetList;
|
||||||
|
|
||||||
@XmlElement
|
@XmlElement
|
||||||
public List<Vet> getVetList() {
|
public List<Vet> getVetList() {
|
||||||
if (vets == null) {
|
if (vetList == null) {
|
||||||
vets = new ArrayList<>();
|
vetList = new ArrayList<>();
|
||||||
}
|
}
|
||||||
return vets;
|
return vetList;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue