Fix some issues found by qodana (#2083)

Signed-off-by: Avgustin Marinov <Avgustin.Marinov@bosch.com>
This commit is contained in:
Avgustin Marinov
2024-11-19 17:04:19 +02:00
committed by GitHub
parent 9c8c82fd8b
commit a3468b2ba9
47 changed files with 124 additions and 98 deletions

View File

@@ -9,6 +9,7 @@
*/
package org.eclipse.hawkbit.security;
import java.io.Serial;
import java.util.Collection;
import java.util.Collections;
import java.util.List;
@@ -200,6 +201,7 @@ public class SystemSecurityContext {
*/
public static final class SystemCodeAuthentication implements Authentication {
@Serial
private static final long serialVersionUID = 1L;
private static final List<SimpleGrantedAuthority> AUTHORITIES = Collections
.singletonList(new SimpleGrantedAuthority(SpringEvalExpressions.SYSTEM_ROLE));