[FIX] Deprecated warning

This commit is contained in:
Gravita 2021-05-16 23:09:17 +07:00
parent 929a3a4ebb
commit b5ce3102a9
3 changed files with 3 additions and 0 deletions

View file

@ -20,6 +20,7 @@ public static AuthProviderResult authError(String message) throws AuthException
throw new AuthException(message); throw new AuthException(message);
} }
@SuppressWarnings("deprecation")
public static void registerProviders() { public static void registerProviders() {
if (!registredProv) { if (!registredProv) {
providers.register("null", NullAuthProvider.class); providers.register("null", NullAuthProvider.class);

View file

@ -8,6 +8,7 @@
import pro.gravit.launchserver.manangers.hook.AuthHookManager; import pro.gravit.launchserver.manangers.hook.AuthHookManager;
import pro.gravit.utils.helper.SecurityHelper; import pro.gravit.utils.helper.SecurityHelper;
@Deprecated
public class HibernateAuthProvider extends AuthProvider implements RequiredDAO { public class HibernateAuthProvider extends AuthProvider implements RequiredDAO {
public boolean autoReg; public boolean autoReg;

View file

@ -37,6 +37,7 @@ public final class LaunchServerConfig {
public boolean copyBinaries = true; public boolean copyBinaries = true;
public LauncherConfig.LauncherEnvironment env; public LauncherConfig.LauncherEnvironment env;
public Map<String, AuthProviderPair> auth; public Map<String, AuthProviderPair> auth;
@Deprecated
public DaoProvider dao; public DaoProvider dao;
public SessionStorage sessions; public SessionStorage sessions;