Remove some noinspection comments

This commit is contained in:
Vankka 2024-07-20 15:28:21 +03:00
parent a4d4c49b72
commit 29a806e734
No known key found for this signature in database
GPG Key ID: 62E48025ED4E7EBB
3 changed files with 7 additions and 9 deletions

View File

@ -30,16 +30,16 @@ import java.util.function.Consumer;
public class BukkitCommandExecutorProvider implements CommandExecutorProvider {
private static final boolean HAS_PAPER_FORWARDING;
private static final boolean HAS_PAPER_FORWARDING = hasPaperForwarding();
static {
boolean has = false;
@SuppressWarnings("JavaReflectionMemberAccess") // Paper only
private static boolean hasPaperForwarding() {
try {
//noinspection JavaReflectionMemberAccess
Server.class.getDeclaredMethod("createCommandSender", Consumer.class);
has = true;
return true;
} catch (Throwable ignored) {}
HAS_PAPER_FORWARDING = has;
return false;
}
private final BukkitDiscordSRV discordSRV;

View File

@ -36,7 +36,6 @@ public class DiscordSRVDependencyManager {
this.dependencyManager = new ApplicationDependencyManager(cacheDirectory);
if (initialLoader != null) {
//noinspection ResultOfMethodCallIgnored
dependencyManager.include(initialLoader.getDependencyManager());
}
}

View File

@ -146,10 +146,9 @@ public class DestinationLookupHelper {
futures.add(future);
}
//noinspection rawtypes
return CompletableFuture.allOf(
futures.stream()
.map(future -> (CompletableFuture) future)
.map(future -> (CompletableFuture<?>) future)
.toArray(CompletableFuture[]::new)
).thenApply(v -> {
Set<Long> idsDuplicateCheck = new HashSet<>();