Skip to content
Snippets Groups Projects
Commit 67ae72f3 authored by Antoine Rey's avatar Antoine Rey
Browse files

Remove public to methods from the ClinicService

Any method you define in an interface is by definition public
parent 53abaf51
No related branches found
No related tags found
No related merge requests found
......@@ -32,19 +32,19 @@ import org.springframework.samples.petclinic.model.Visit;
*/
public interface ClinicService {
public Collection<PetType> findPetTypes() throws DataAccessException;
Collection<PetType> findPetTypes() throws DataAccessException;
public Owner findOwnerById(int id) throws DataAccessException;
Owner findOwnerById(int id) throws DataAccessException;
public Pet findPetById(int id) throws DataAccessException;
Pet findPetById(int id) throws DataAccessException;
public void savePet(Pet pet) throws DataAccessException;
void savePet(Pet pet) throws DataAccessException;
public void saveVisit(Visit visit) throws DataAccessException;
void saveVisit(Visit visit) throws DataAccessException;
public Collection<Vet> findVets() throws DataAccessException;
Collection<Vet> findVets() throws DataAccessException;
public void saveOwner(Owner owner) throws DataAccessException;
void saveOwner(Owner owner) throws DataAccessException;
Collection<Owner> findOwnerByLastName(String lastName) throws DataAccessException;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment