From 69281d113cd7146ddda2f962b90f76ddd77cbc67 Mon Sep 17 00:00:00 2001 From: Liam Date: Mon, 1 Jul 2024 21:51:51 +0100 Subject: [PATCH] fix marked as non null err and removed profiles debug --- src/main/java/cc/fascinated/bat/common/ProfileHolder.java | 2 -- src/main/java/cc/fascinated/bat/event/EventListener.java | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/src/main/java/cc/fascinated/bat/common/ProfileHolder.java b/src/main/java/cc/fascinated/bat/common/ProfileHolder.java index 7fc8f87..17d8e38 100644 --- a/src/main/java/cc/fascinated/bat/common/ProfileHolder.java +++ b/src/main/java/cc/fascinated/bat/common/ProfileHolder.java @@ -41,8 +41,6 @@ public abstract class ProfileHolder { Serializable profile = getProfiles().get(clazz.getSimpleName()); if (profile == null) { T newProfile = clazz.cast(clazz.getDeclaredConstructors()[0].newInstance()); - - log.info("instance of profiles: {}", document.get("profiles").getClass().getSimpleName()); Document profiles = document.get("profiles", new org.bson.Document()); Document profileDocument = (Document) profiles.get(clazz.getSimpleName()); diff --git a/src/main/java/cc/fascinated/bat/event/EventListener.java b/src/main/java/cc/fascinated/bat/event/EventListener.java index fa553a5..e47bcd4 100644 --- a/src/main/java/cc/fascinated/bat/event/EventListener.java +++ b/src/main/java/cc/fascinated/bat/event/EventListener.java @@ -48,7 +48,7 @@ public interface EventListener { * @param guild the guild the user left * @param user the user that left the guild */ - default void onGuildMemberLeave(@NonNull BatGuild guild, @NonNull BatUser user, @NonNull GuildMemberRemoveEvent event) { + default void onGuildMemberLeave(@NonNull BatGuild guild, BatUser user, @NonNull GuildMemberRemoveEvent event) { } /**