mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-22 07:15: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
|
||||
public class Vets {
|
||||
|
||||
private List<Vet> vets;
|
||||
private List<Vet> vetList;
|
||||
|
||||
@XmlElement
|
||||
public List<Vet> getVetList() {
|
||||
if (vets == null) {
|
||||
vets = new ArrayList<>();
|
||||
if (vetList == null) {
|
||||
vetList = new ArrayList<>();
|
||||
}
|
||||
return vets;
|
||||
return vetList;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue