Jean-Francois Leveque

sonarQube : Use constructor injection for this field.

......@@ -14,15 +14,20 @@ import java.util.Vector;
@Stateless
public class SharedServiceSpring implements SharedService {
@Inject
CountryRepository countryRepository;
@Inject
UserRoleRepository userRoleRepository;
@Inject
UserPropertyRepository userPropertyRepository;
@Inject
UserService userService;
@Inject
public SharedServiceSpring(CountryRepository countryRepository, UserRoleRepository userRoleRepository,
UserPropertyRepository userPropertyRepository, UserService userService) {
this.countryRepository = countryRepository;
this.userRoleRepository = userRoleRepository;
this.userPropertyRepository = userPropertyRepository;
this.userService = userService;
}
private List<DisplayNameMask> allDisplayNameMasks;
public void addCountry(Country country) {
......