mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-04-24 11:22:48 +00:00
Remove unnecessary @Autowired annotation from the PetTypeFormatter
Signed-off-by: Antoine Rey <antoine.rey@free.fr>
This commit is contained in:
parent
2aa53f929d
commit
7f1af268ec
1 changed files with 0 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue