Remove unnecessary @Autowired annotation from the PetTypeFormatter

Signed-off-by: Antoine Rey <antoine.rey@free.fr>
This commit is contained in:
Antoine Rey 2025-02-26 22:35:03 +01:00 committed by Dave Syer
parent 2aa53f929d
commit 7f1af268ec

View file

@ -15,7 +15,6 @@
*/
package org.springframework.samples.petclinic.owner;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.format.Formatter;
import org.springframework.stereotype.Component;
@ -38,7 +37,6 @@ public class PetTypeFormatter implements Formatter<PetType> {
private final OwnerRepository owners;
@Autowired
public PetTypeFormatter(OwnerRepository owners) {
this.owners = owners;
}