From b1d24479ae3b1f466c262f30f164320b99104ce1 Mon Sep 17 00:00:00 2001 From: Skullian <133133667+Skullians@users.noreply.github.com> Date: Mon, 23 Dec 2024 21:05:18 +0000 Subject: [PATCH] Fix: Sanity deprecation --- .../skullian/skyfactions/paper/api/adapter/SpigotAdapter.java | 2 ++ qodana.yaml | 1 + 2 files changed, 3 insertions(+) diff --git a/paper/src/main/java/net/skullian/skyfactions/paper/api/adapter/SpigotAdapter.java b/paper/src/main/java/net/skullian/skyfactions/paper/api/adapter/SpigotAdapter.java index 51929762..4bf9e2db 100644 --- a/paper/src/main/java/net/skullian/skyfactions/paper/api/adapter/SpigotAdapter.java +++ b/paper/src/main/java/net/skullian/skyfactions/paper/api/adapter/SpigotAdapter.java @@ -23,6 +23,7 @@ import java.util.UUID; +@SuppressWarnings("rawtypes") public class SpigotAdapter { public static Location adapt(SkyLocation location) { @@ -44,6 +45,7 @@ public static OfflinePlayer adapt(SkyUser user) { return Bukkit.getOfflinePlayer(user.getUniqueId()); } + @SuppressWarnings("deprecation, unchecked") public static ItemStack adapt(SkyItemStack skyStack, SkyUser user, boolean legacy) { String locale = user != null ? SkyApi.getInstance().getPlayerAPI().getLocale(user.getUniqueId()) : Messages.getDefaulLocale(); diff --git a/qodana.yaml b/qodana.yaml index 755ca2d2..f564c067 100644 --- a/qodana.yaml +++ b/qodana.yaml @@ -14,3 +14,4 @@ include: - name: UnnecessarySemicolon - name: UNUSED_IMPORT - name: UnnecessaryCallToStringValueOf + - name: Deprecation