From 520008bb609abfbde14ce869314b0ed519ec9687 Mon Sep 17 00:00:00 2001 From: remi Date: Tue, 22 Nov 2016 22:09:16 +0100 Subject: [PATCH] No need for a constructor in the LoginController. Just need to @Autowire each property. --- .../player/controller/LoginController.java | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/libresonic-main/src/main/java/org/libresonic/player/controller/LoginController.java b/libresonic-main/src/main/java/org/libresonic/player/controller/LoginController.java index 41a9e3ea..dfdb5f1d 100644 --- a/libresonic-main/src/main/java/org/libresonic/player/controller/LoginController.java +++ b/libresonic-main/src/main/java/org/libresonic/player/controller/LoginController.java @@ -29,16 +29,10 @@ public class LoginController { private static final Logger LOG = Logger.getLogger(LoginController.class); - private final SecurityService securityService; - private final SettingsService settingsService; - private final PlaylistService playlistService; - @Autowired - public LoginController(SecurityService securityService, SettingsService settingsService, PlaylistService playlistService) { - this.securityService = securityService; - this.settingsService = settingsService; - this.playlistService = playlistService; - } + private final SecurityService securityService = null; + @Autowired + private final SettingsService settingsService = null; @RequestMapping(method = { RequestMethod.GET, RequestMethod.POST }) public ModelAndView login(HttpServletRequest request, HttpServletResponse response) throws Exception {