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:
Abhijay Kumar 2020-08-21 19:42:07 +05:30
parent 0fab9fe4d7
commit 1c0139a39c

View file

@ -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;
} }
} }