From 7f1af268ec0fc13d27f19b8d3fb58f0011fd1509 Mon Sep 17 00:00:00 2001 From: Antoine Rey Date: Wed, 26 Feb 2025 22:35:03 +0100 Subject: [PATCH] Remove unnecessary @Autowired annotation from the PetTypeFormatter Signed-off-by: Antoine Rey --- .../samples/petclinic/owner/PetTypeFormatter.java | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/main/java/org/springframework/samples/petclinic/owner/PetTypeFormatter.java b/src/main/java/org/springframework/samples/petclinic/owner/PetTypeFormatter.java index 4fa18da91..73bfa1ae1 100644 --- a/src/main/java/org/springframework/samples/petclinic/owner/PetTypeFormatter.java +++ b/src/main/java/org/springframework/samples/petclinic/owner/PetTypeFormatter.java @@ -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 { private final OwnerRepository owners; - @Autowired public PetTypeFormatter(OwnerRepository owners) { this.owners = owners; }