Skip to content

Commit b927119

Browse files
areydsyer
authored andcommitted
Remove unnecessary @Autowired annotation from the PetTypeFormatter
Signed-off-by: Antoine Rey <[email protected]>
1 parent c1c5731 commit b927119

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

src/main/java/org/springframework/samples/petclinic/owner/PetTypeFormatter.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
*/
1616
package org.springframework.samples.petclinic.owner;
1717

18-
import org.springframework.beans.factory.annotation.Autowired;
1918
import org.springframework.format.Formatter;
2019
import org.springframework.stereotype.Component;
2120

@@ -38,7 +37,6 @@ public class PetTypeFormatter implements Formatter<PetType> {
3837

3938
private final OwnerRepository owners;
4039

41-
@Autowired
4240
public PetTypeFormatter(OwnerRepository owners) {
4341
this.owners = owners;
4442
}

0 commit comments

Comments
 (0)