fix broken build due to @Deprecated error [FINERACT-1012]

This commit is contained in:
Michael Vorburger
2020-05-28 22:36:03 +02:00
committed by Michael Vorburger ⛑️
parent 0322d4f94b
commit 4b108f02ec
2 changed files with 11 additions and 9 deletions
@@ -62,6 +62,7 @@ import org.springframework.stereotype.Component;
@SwaggerDefinition(tags = { @SwaggerDefinition(tags = {
@Tag(name = "Fetch authenticated user details", description = "") @Tag(name = "Fetch authenticated user details", description = "")
}) })
@SuppressWarnings("deprecation") // TODO FINERACT-1012
public class UserDetailsApiResource { public class UserDetailsApiResource {
private final ResourceServerTokenServices tokenServices; private final ResourceServerTokenServices tokenServices;
@@ -120,6 +120,7 @@ public class TwoFactorAuthenticationFilter extends GenericFilterBean {
chain.doFilter(req, res); chain.doFilter(req, res);
} }
@SuppressWarnings("deprecation") // TODO FINERACT-1012
private Authentication createUpdatedAuthentication(final Authentication currentAuthentication, private Authentication createUpdatedAuthentication(final Authentication currentAuthentication,
final List<GrantedAuthority> updatedAuthorities) { final List<GrantedAuthority> updatedAuthorities) {