code cleanup

This commit is contained in:
Alexander Schwartz 2022-06-15 10:37:16 +02:00 committed by Hynek Mlnařík
parent 896afc4644
commit 6376db0f9c
4 changed files with 3 additions and 14 deletions

View file

@ -51,7 +51,7 @@ public class TestLdapConnectionRealmAdminProvider implements AdminRealmResourceP
@Override
public Object getResource(KeycloakSession session, RealmModel realm, AdminPermissionEvaluator auth, AdminEventBuilder adminEvent) {
return new TestLdapConnectionResource(realm, auth, adminEvent);
return new TestLdapConnectionResource(realm, auth);
}
}

View file

@ -41,27 +41,16 @@ import javax.ws.rs.core.Response;
* @version $Revision: 1 $
*/
public class TestLdapConnectionResource {
private static final Logger logger = Logger.getLogger(TestLdapConnectionResource.class);
protected RealmModel realm;
protected AdminPermissionEvaluator auth;
protected AdminEventBuilder adminEvent;
@Context
protected ClientConnection clientConnection;
@Context
protected KeycloakSession session;
@Context
protected HttpHeaders headers;
public TestLdapConnectionResource(RealmModel realm, AdminPermissionEvaluator auth, AdminEventBuilder adminEvent) {
public TestLdapConnectionResource(RealmModel realm, AdminPermissionEvaluator auth) {
this.auth = auth;
this.realm = realm;
this.adminEvent = adminEvent;
}
/**

View file

@ -34,7 +34,6 @@
org.keycloak.locale.LocaleSelectorSPI
org.keycloak.locale.LocaleUpdaterSPI
org.keycloak.storage.UserStorageProviderSpi
org.keycloak.theme.ThemeResourceSpi
org.keycloak.theme.ThemeSelectorSpi
org.keycloak.urls.HostnameSpi

View file

@ -162,6 +162,7 @@ public class DefaultKeycloakSession implements KeycloakSession {
}
@Override
@Deprecated
public UserFederatedStorageProvider userFederatedStorage() {
if (userFederatedStorageProvider == null) {
userFederatedStorageProvider = getProvider(UserFederatedStorageProvider.class);