From 87cd66852202758375a95fa865470cd8f8ca8f4e Mon Sep 17 00:00:00 2001 From: Gravita Date: Sun, 7 Feb 2021 21:44:14 +0700 Subject: [PATCH] [ANY] Deprecated AutoSaveSessions API --- .../pro/gravit/launchserver/manangers/SessionManager.java | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/LaunchServer/src/main/java/pro/gravit/launchserver/manangers/SessionManager.java b/LaunchServer/src/main/java/pro/gravit/launchserver/manangers/SessionManager.java index 92c2a7d2..3dd5bf48 100644 --- a/LaunchServer/src/main/java/pro/gravit/launchserver/manangers/SessionManager.java +++ b/LaunchServer/src/main/java/pro/gravit/launchserver/manangers/SessionManager.java @@ -96,17 +96,16 @@ public void removeClient(UUID session) { @Deprecated public void updateClient(UUID session) { - LogHelper.warning("Using deprecated method: sessionManager.updateClient"); + throw new UnsupportedOperationException(); } @Deprecated public Set getSessions() { - LogHelper.warning("Using deprecated method: sessionManager.getSession"); - return new HashSet<>(); + throw new UnsupportedOperationException(); } @Deprecated public void loadSessions(Set set) { - LogHelper.warning("Using deprecated method: sessionManager.loadSessions"); + throw new UnsupportedOperationException(); //clientSet.putAll(set.stream().collect(Collectors.toMap(c -> c.session, Function.identity()))); } }