From 9147d364bcc5f1de819cb8d1a6fe8cdde4122993 Mon Sep 17 00:00:00 2001 From: "pixeebot[bot]" <104101892+pixeebot[bot]@users.noreply.github.com> Date: Fri, 7 Jun 2024 04:38:10 +0000 Subject: [PATCH] (Sonar) Fixed finding: "`@Override` should be used on overriding and implementing methods" --- .../software/SPDF/config/security/AppUpdateAuthService.java | 1 + .../stirling/software/SPDF/model/ApplicationProperties.java | 2 ++ 2 files changed, 3 insertions(+) diff --git a/src/main/java/stirling/software/SPDF/config/security/AppUpdateAuthService.java b/src/main/java/stirling/software/SPDF/config/security/AppUpdateAuthService.java index 0da07c61..c4b53ad5 100644 --- a/src/main/java/stirling/software/SPDF/config/security/AppUpdateAuthService.java +++ b/src/main/java/stirling/software/SPDF/config/security/AppUpdateAuthService.java @@ -18,6 +18,7 @@ class AppUpdateAuthService implements ShowAdminInterface { @Autowired private UserRepository userRepository; @Autowired private ApplicationProperties applicationProperties; + @Override public boolean getShowUpdateOnlyAdmins() { boolean showUpdate = applicationProperties.getSystem().getShowUpdate(); if (!showUpdate) { diff --git a/src/main/java/stirling/software/SPDF/model/ApplicationProperties.java b/src/main/java/stirling/software/SPDF/model/ApplicationProperties.java index bc98b24f..13c33d63 100644 --- a/src/main/java/stirling/software/SPDF/model/ApplicationProperties.java +++ b/src/main/java/stirling/software/SPDF/model/ApplicationProperties.java @@ -559,6 +559,7 @@ public class ApplicationProperties { this.clientSecret = clientSecret; } + @Override public Collection getScopes() { if (scopes == null || scopes.isEmpty()) { scopes = new ArrayList<>(); @@ -661,6 +662,7 @@ public class ApplicationProperties { return scopes; } + @Override public void setScopes(String scopes) { this.scopes = Arrays.stream(scopes.split(",")).map(String::trim).collect(Collectors.toList());