Moved @Autowired from final field to constructor in JWTSecurityService.

Signed-off-by: Derrek Bond <yoyo007@gmail.com>
master
Derrek Bond 7 years ago
parent 5635f52641
commit 116abe16f7
  1. 2
      airsonic-main/src/main/java/org/airsonic/player/service/JWTSecurityService.java

@ -28,9 +28,9 @@ public class JWTSecurityService {
public static final int DEFAULT_DAYS_VALID_FOR = 7; public static final int DEFAULT_DAYS_VALID_FOR = 7;
private static SecureRandom secureRandom = new SecureRandom(); private static SecureRandom secureRandom = new SecureRandom();
@Autowired
private final SettingsService settingsService; private final SettingsService settingsService;
@Autowired
public JWTSecurityService(SettingsService settingsService) { public JWTSecurityService(SettingsService settingsService) {
this.settingsService = settingsService; this.settingsService = settingsService;
} }

Loading…
Cancel
Save