mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-16 12:45:48 +00:00
Updating using GitHub API 2025-06-19-15:31
This commit is contained in:
parent
c2d6cda5c3
commit
516f13e3fc
1 changed files with 5 additions and 5 deletions
|
@ -30,14 +30,14 @@ import jakarta.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