Skip to content

Commit

Permalink
Fix: Sanity deprecation
Browse files Browse the repository at this point in the history
  • Loading branch information
Skullians committed Dec 23, 2024
1 parent 5fe6565 commit b1d2447
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@

import java.util.UUID;

@SuppressWarnings("rawtypes")
public class SpigotAdapter {

public static Location adapt(SkyLocation location) {
Expand All @@ -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();

Expand Down
1 change: 1 addition & 0 deletions qodana.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,4 @@ include:
- name: UnnecessarySemicolon
- name: UNUSED_IMPORT
- name: UnnecessaryCallToStringValueOf
- name: Deprecation

0 comments on commit b1d2447

Please sign in to comment.